FreeCalypso > hg > freecalypso-sw
changeset 343:e3a2e6e875de
OSL reconstruction: beginning of os_pro_ir.c
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 03 May 2014 17:46:36 +0000 |
parents | 1c94c36ca3e4 |
children | c51d6b3748c3 |
files | gsm-fw/gpf/osl/Makefile gsm-fw/gpf/osl/os_pro_ir.c |
diffstat | 2 files changed, 37 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/Makefile Sat May 03 12:29:49 2014 +0000 +++ b/gsm-fw/gpf/osl/Makefile Sat May 03 17:46:36 2014 +0000 @@ -1,10 +1,18 @@ CC= arm-elf-gcc -CFLAGS= -O2 -fno-builtin -mthumb-interwork -mthumb -CPPFLAGS=-I../inc -DRUN_FLASH +COPTS= -O2 -fno-builtin -mthumb-interwork -I../inc +IOPTS= -DRUN_INT_RAM +XOPTS= -DRUN_FLASH -mthumb +IOBJS= os_pro_ir.o XOBJS= os_pro_fl.o -all: ${XOBJS} +all: ${IOBJS} ${XOBJS} + +${IOBJS}: %.o : %.c + ${CC} ${COPTS} ${IOPTS} -c $< + +${XOBJS}: %.o : %.c + ${CC} ${COPTS} ${XOPTS} -c $< clean: rm -f *.[oa] *errs
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gsm-fw/gpf/osl/os_pro_ir.c Sat May 03 17:46:36 2014 +0000 @@ -0,0 +1,26 @@ +/* + * This C module is a reconstruction based on the disassembly of + * os_pro.obj in frame_na7_db_ir.lib from the Leonardo package. + */ + +/* set of included headers from COFF symtab: */ +#include <stdio.h> +#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" + +typedef unsigned char u_char; + +extern VOID *TCD_Current_Thread; +extern T_OS_TASK_TABLE_ENTRY TaskTable[]; + +VOID +os_TaskEntry(UNSIGNED TaskHandle, VOID *argv) +{ + TaskTable[TaskHandle].TaskEntry(TaskHandle, 0); +}