FreeCalypso > hg > freecalypso-sw
annotate 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 |
rev | line source |
---|---|
364
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 /* |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 * This C module is a reconstruction based on the disassembly of |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 * os_drv.obj in frame_na7_db_fl.lib from the Leonardo package. |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 */ |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 /* set of included headers from COFF symtab: */ |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 #include "gpfconf.h" /* FreeCalypso addition */ |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 #include "../../nucleus/nucleus.h" |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 #include "typedefs.h" |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 #include "gdi.h" |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 #include "os.h" |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 typedef unsigned char u_char; |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 extern OS_HANDLE os_ext_pool_handle; |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 static u_char *HISR_Stack; |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 static T_DRV_SIGNAL *SignalID; |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 static void (*DrvCallback)(T_DRV_SIGNAL *); |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 static NU_HISR CallBack_HISR; |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 GLOBAL LONG |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 os_ExecuteCallback(OS_HANDLE Caller, void (*Callback)(T_DRV_SIGNAL *), |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 T_DRV_SIGNAL *Signal) |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 { |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 DrvCallback = Callback; |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 SignalID = Signal; |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 NU_Activate_HISR(&CallBack_HISR); |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 return(OS_OK); |
4a78dc764229
OSL: os_drv.c started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 } |