changeset 498:dfa8771e84b1

OSL: os_pro_ir.c compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 24 Jun 2018 21:32:13 +0000
parents bc12e6de8a07
children 27db9775cbab
files components/frame_na7_db_ir src/gpf2/osl/os_pro_ir.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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);
 }