Upgraded GRUB2 to 2.00 release.
[AROS.git] / compiler / clib / __alloca.c
blob80f259ff5d32110535d7c2d86d98d46bcfdea966
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;
10 #else
11 return FindTask(NULL)->tc_SPUpper;
12 #endif