FreeCalypso > hg > fc-magnetite
diff src/gpf2/osl/os_pro_ir.c @ 498:dfa8771e84b1
OSL: os_pro_ir.c compiles
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 24 Jun 2018 21:32:13 +0000 |
parents | 91e8dac34ada |
children |
line wrap: on
line diff
--- a/src/gpf2/osl/os_pro_ir.c Sun Jun 24 20:55:25 2018 +0000 +++ b/src/gpf2/osl/os_pro_ir.c Sun Jun 24 21:32:13 2018 +0000 @@ -6,8 +6,7 @@ /* set of included headers from COFF symtab: */ #include <stdio.h> #include <string.h> -#include "gpfconf.h" /* FreeCalypso addition */ -#include "../../nucleus/nucleus.h" +#include "nucleus.h" #include "typedefs.h" #include "os.h" #include "gdi.h" @@ -92,14 +91,18 @@ GLOBAL LONG os_CheckTaskStack(OS_HANDLE Handle) { +#ifdef __GNUC__ register void *sp asm("sp"); +#endif if (*TaskTable[Handle].Stack != GUARD_PATTERN) return(OS_ERROR); +#ifdef __GNUC__ if (TCD_Current_Thread) { NU_TASK *curtask = TCD_Current_Thread; if (sp < curtask->tc_stack_start) return(OS_ERROR); } +#endif return(OS_OK); }