1 #include <proto/exec.h>
3 /* private function to get the upper or lower bound (depending on the architecture) of the stack */
4 /* It has to go into a separate file so that proto/exec.h doesn't get included in the clib headers */
6 void *__alloca_get_stack_limit(void)
8 #if AROS_STACK_GROWS_DOWNWARDS
9 return FindTask(NULL
)->tc_SPLower
;
11 return FindTask(NULL
)->tc_SPUpper
;