FreeCalypso > hg > fc-magnetite
comparison 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 |
comparison
equal
deleted
inserted
replaced
497:bc12e6de8a07 | 498:dfa8771e84b1 |
---|---|
4 */ | 4 */ |
5 | 5 |
6 /* set of included headers from COFF symtab: */ | 6 /* set of included headers from COFF symtab: */ |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include "gpfconf.h" /* FreeCalypso addition */ | 9 #include "nucleus.h" |
10 #include "../../nucleus/nucleus.h" | |
11 #include "typedefs.h" | 10 #include "typedefs.h" |
12 #include "os.h" | 11 #include "os.h" |
13 #include "gdi.h" | 12 #include "gdi.h" |
14 #include "os_types.h" | 13 #include "os_types.h" |
15 #include "os_glob.h" | 14 #include "os_glob.h" |
90 } | 89 } |
91 | 90 |
92 GLOBAL LONG | 91 GLOBAL LONG |
93 os_CheckTaskStack(OS_HANDLE Handle) | 92 os_CheckTaskStack(OS_HANDLE Handle) |
94 { | 93 { |
94 #ifdef __GNUC__ | |
95 register void *sp asm("sp"); | 95 register void *sp asm("sp"); |
96 #endif | |
96 | 97 |
97 if (*TaskTable[Handle].Stack != GUARD_PATTERN) | 98 if (*TaskTable[Handle].Stack != GUARD_PATTERN) |
98 return(OS_ERROR); | 99 return(OS_ERROR); |
100 #ifdef __GNUC__ | |
99 if (TCD_Current_Thread) { | 101 if (TCD_Current_Thread) { |
100 NU_TASK *curtask = TCD_Current_Thread; | 102 NU_TASK *curtask = TCD_Current_Thread; |
101 if (sp < curtask->tc_stack_start) | 103 if (sp < curtask->tc_stack_start) |
102 return(OS_ERROR); | 104 return(OS_ERROR); |
103 } | 105 } |
106 #endif | |
104 return(OS_OK); | 107 return(OS_OK); |
105 } | 108 } |