FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/gpf/osl/os_mis_fl.c @ 539:d8f39cef94d0
gsm-fw/L1/include/l1_trace.h: conditional maze reformatted for readability
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 02 Aug 2014 03:47:10 +0000 |
parents | 334a3381f569 |
children |
rev | line source |
---|---|
477
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 /* |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 * This C module is a reconstruction based on the disassembly of |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 * os_mis.obj in frame_na7_db_fl.lib from the Leonardo package. |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 */ |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 /* set of included headers from COFF symtab, slightly reordered: */ |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 #include <stddef.h> |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 #include <stdio.h> |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 #include <string.h> |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 #include "../../riviera/rv/general.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 #include "../../riviera/rv/rv_general.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 #include "../../riviera/rvf/rvf_api.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 #include "../../services/ffs/ffs.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 #include "gpfconf.h" /* FreeCalypso addition */ |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 #include "../../nucleus/nucleus.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 #include "typedefs.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 #include "os.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 #include "gdi.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 #include "os_types.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 #include "os_glob.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 #include "header.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 #include "vsi.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 #include "drvconf.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 #include "../tst_pei/tstdriver.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 #include "dar_func.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 #include "tools.h" |
2f79ddc12bb0
OSL reconstruction: os_mis_fl.c: got the set of included headers, passes gcc
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 |
478
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
28 typedef unsigned char u_char; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
29 |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
30 char *NU_State[13] = { |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
31 "NU_READY", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
32 "", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
33 "NU_SLEEP_SUSPEND", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
34 "", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
35 "", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
36 "NU_QUEUE_SUSPEND", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
37 "NU_SEMAPHORE_SUSPEND", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
38 "", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
39 "NU_PARTITION_SUSPEND", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
40 "NU_MEMORY_SUSPEND", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
41 "", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
42 "NU_FINISHED", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
43 "NU_TERMINATED", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
44 }; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
45 |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
46 char *msg_type[4] = { |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
47 "", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
48 "PRIMITIVE", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
49 "SIGNAL", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
50 "TIMEOUT", |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
51 }; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
52 |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
53 char *warning = "SYSTEM WARNING: "; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
54 |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
55 T_GPF_DAR_PROPERTIES *dar; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
56 T_GPF_DAR_STRUCT os_dar; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
57 NU_PROTECT os_mis_Protect; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
58 u_char SystemErrorBuffer[256]; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
59 u_char DARErrorBuffer[256]; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
60 |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
61 static u_char state; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
62 static int fd; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
63 static unsigned bytes_read; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
64 static u_char *msg; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
65 static unsigned count; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
66 static unsigned data_len; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
67 static unsigned dar_wrap_around; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
68 static unsigned dar_buffer_count; |
dac495b0d222
os_mis_fl.c: global and static data reconstructed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
477
diff
changeset
|
69 static unsigned dar_wrap_around_detected; |
480
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
70 |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
71 LONG |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
72 os_read_dar_ffs_data(USHORT entry, char *buffer, USHORT len) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
73 { |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
74 /* dummy for now */ |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
75 return(OS_ERROR); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
76 } |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
77 |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
78 LONG |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
79 os_dar_set_filter(void) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
80 { |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
81 if (dar) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
82 dar->diagnose_swe_filter(dar->gpf_use_id, dar->warning); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
83 return(OS_OK); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
84 } |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
85 |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
86 LONG |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
87 os_dar_register(const void *dar_properties) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
88 { |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
89 if (dar_properties) { |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
90 os_dar.properties = (T_GPF_DAR_PROPERTIES *) dar_properties; |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
91 os_dar.magic_nr = DAR_INITIALIZED; |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
92 dar = (T_GPF_DAR_PROPERTIES *) dar_properties; |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
93 } |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
94 return(OS_OK); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
95 } |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
96 |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
97 void |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
98 os_dar_init(void) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
99 { |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
100 if (os_dar.magic_nr != DAR_INITIALIZED) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
101 dar = 0; |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
102 } |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
103 |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
104 void |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
105 os_SystemError(OS_HANDLE Caller, USHORT cause, char *buffer) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
106 { |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
107 /* |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
108 * The implementation of this function in the binary blob |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
109 * which we are reversing is very complex. I am leaving it |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
110 * as an empty stub for now. - Space Falcon |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
111 */ |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
112 } |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
113 |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
114 GLOBAL LONG |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
115 os_ObjectInformation(OS_HANDLE Caller, USHORT Id, USHORT Handle, USHORT len, |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
116 void *Buffer) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
117 { |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
118 switch (Id) { |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
119 case OS_OBJTASK: |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
120 return os_TaskInformation(Handle, Buffer); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
121 case OS_OBJQUEUE: |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
122 return os_QueueInformation(Handle, Buffer); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
123 case OS_OBJPARTITIONGROUP: |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
124 return os_PartitionInformation(Handle, Buffer); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
125 case OS_OBJMEMORYPOOL: |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
126 return os_MemoryInformation(Handle, Buffer); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
127 case OS_OBJTIMER: |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
128 return os_TimerInformation(Handle, Buffer); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
129 case OS_OBJSEMAPHORE: |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
130 return os_SemaphoreInformation(Handle, Buffer); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
131 default: |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
132 return(OS_ERROR); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
133 } |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
134 } |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
135 |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
136 GLOBAL LONG |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
137 os_Initialize(void) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
138 { |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
139 if (os_SemInit() == OS_ERROR) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
140 return(OS_ERROR); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
141 if (os_ProInit() == OS_ERROR) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
142 return(OS_ERROR); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
143 if (os_ComInit() == OS_ERROR) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
144 return(OS_ERROR); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
145 if (os_MemInit() == OS_ERROR) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
146 return(OS_ERROR); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
147 if (os_TimInit() == OS_ERROR) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
148 return(OS_ERROR); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
149 if (os_isr_init() == OS_ERROR) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
150 return(OS_ERROR); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
151 #if 0 |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
152 if (os_EvGrpInit() == OS_ERROR) |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
153 return(OS_ERROR); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
154 #endif |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
155 /* |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
156 * The original code zeroes out the first 32-bit word of |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
157 * os_mis_Protect here. We don't really need to do that, |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
158 * as it is a zeroed-on-boot bss var. |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
159 */ |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
160 os_dar_init(); /* inlined in the original */ |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
161 return(OS_OK); |
334a3381f569
os_mis_fl.c: easy functions reconstructed, hard ones stubbed out
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
478
diff
changeset
|
162 } |