comparison gsm-fw/gpf/osl/os_drv.c @ 364:4a78dc764229

OSL: os_drv.c started
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 29 May 2014 00:01:26 +0000
parents
children 46bdf41cb019
comparison
equal deleted inserted replaced
363:28a2965df6aa 364:4a78dc764229
1 /*
2 * This C module is a reconstruction based on the disassembly of
3 * os_drv.obj in frame_na7_db_fl.lib from the Leonardo package.
4 */
5
6 /* set of included headers from COFF symtab: */
7 #include "gpfconf.h" /* FreeCalypso addition */
8 #include "../../nucleus/nucleus.h"
9 #include "typedefs.h"
10 #include "gdi.h"
11 #include "os.h"
12
13 typedef unsigned char u_char;
14
15 extern OS_HANDLE os_ext_pool_handle;
16
17 static u_char *HISR_Stack;
18 static T_DRV_SIGNAL *SignalID;
19 static void (*DrvCallback)(T_DRV_SIGNAL *);
20 static NU_HISR CallBack_HISR;
21
22 GLOBAL LONG
23 os_ExecuteCallback(OS_HANDLE Caller, void (*Callback)(T_DRV_SIGNAL *),
24 T_DRV_SIGNAL *Signal)
25 {
26 DrvCallback = Callback;
27 SignalID = Signal;
28 NU_Activate_HISR(&CallBack_HISR);
29 return(OS_OK);
30 }