2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
8 /* private function to get the upper or lower bound (depending on the architecture) of the stack */
9 /* It has to go into a separate file so that proto/exec.h doesn't get included in the clib headers */
11 void *__alloca_get_stack_limit(void)
13 #if AROS_STACK_GROWS_DOWNWARDS
14 return FindTask(NULL
)->tc_SPLower
;
16 return FindTask(NULL
)->tc_SPUpper
;