# HG changeset patch # User Mychaela Falconia # Date 1529875933 0 # Node ID dfa8771e84b12a885c75800230e10812d44edffb # Parent bc12e6de8a079cd2f55ca89c94a5e154b56b2986 OSL: os_pro_ir.c compiles diff -r bc12e6de8a07 -r dfa8771e84b1 components/frame_na7_db_ir --- a/components/frame_na7_db_ir Sun Jun 24 20:55:25 2018 +0000 +++ b/components/frame_na7_db_ir Sun Jun 24 21:32:13 2018 +0000 @@ -44,3 +44,4 @@ cfile_plain $SRCDIR/os_com_ir.c cfile_plain $SRCDIR/os_mem_ir.c cfile_plain $SRCDIR/os_mis_ir.c +cfile_plain $SRCDIR/os_pro_ir.c diff -r bc12e6de8a07 -r dfa8771e84b1 src/gpf2/osl/os_pro_ir.c --- 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 #include -#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); }