changeset 346:fdeea3d6582d

OSL: reconstruction of os_isr.c (_fl only) started
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 07 May 2014 19:50:01 +0000
parents 460ed6748e4c
children c9dfa0e20640
files gsm-fw/gpf/osl/Makefile gsm-fw/gpf/osl/os_isr.c gsm-fw/gpf/osl/os_pro_ir.c
diffstat 3 files changed, 27 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/Makefile	Wed May 07 18:45:50 2014 +0000
+++ b/gsm-fw/gpf/osl/Makefile	Wed May 07 19:50:01 2014 +0000
@@ -4,7 +4,7 @@
 XOPTS=	-DRUN_FLASH -mthumb
 
 IOBJS=	os_pro_ir.o
-XOBJS=	os_pro_fl.o
+XOBJS=	os_isr.o os_pro_fl.o
 
 all:	${IOBJS} ${XOBJS}
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/gpf/osl/os_isr.c	Wed May 07 19:50:01 2014 +0000
@@ -0,0 +1,26 @@
+/*
+ * This C module is a reconstruction based on the disassembly of
+ * os_isr.obj in frame_na7_db_fl.lib from the Leonardo package.
+ */
+
+/* set of included headers from COFF symtab: */
+#include <string.h>
+#include "gpfconf.h"	/* FreeCalypso addition */
+#include "../../nucleus/nucleus.h"
+#include "typedefs.h"
+#include "os.h"
+#include "gdi.h"
+#include "os_types.h"
+#include "os_glob.h"
+
+extern T_OS_OSISR_TABLE_ENTRY OSISRTable[];
+
+GLOBAL LONG
+os_isr_init(void)
+{
+	USHORT i;
+
+	for (i = 1; i <= MaxOSISRs; i++)
+		OSISRTable[i].name[0] = 0;
+	return(OS_OK);
+}
--- a/gsm-fw/gpf/osl/os_pro_ir.c	Wed May 07 18:45:50 2014 +0000
+++ b/gsm-fw/gpf/osl/os_pro_ir.c	Wed May 07 19:50:01 2014 +0000
@@ -14,8 +14,6 @@
 #include "os_types.h"
 #include "os_glob.h"
 
-typedef unsigned char u_char;
-
 extern VOID *TCD_Current_Thread;
 extern T_OS_TASK_TABLE_ENTRY TaskTable[];
 extern unsigned os_time_to_tick_multiplier;