summaryrefslogtreecommitdiff
path: root/src/lib/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/stack.c')
-rw-r--r--src/lib/stack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/stack.c b/src/lib/stack.c
index ef45e2aee4..479ed93c05 100644
--- a/src/lib/stack.c
+++ b/src/lib/stack.c
@@ -30,7 +30,8 @@ it with the version available from LANL.
int checkstack(void *top_of_stack, int core)
{
/* Not all archs use CONFIG_STACK_SIZE, those who don't set it to 0. */
- size_t stack_size = CONFIG_STACK_SIZE ? CONFIG_STACK_SIZE : _stack_size;
+ size_t stack_size = CONFIG_STACK_SIZE ?
+ CONFIG_STACK_SIZE : REGION_SIZE(stack);
int i;
u32 *stack = (u32 *) (top_of_stack - stack_size);