Initial revision
[ssr] / StraySrc / Libraries / Core / s / xdata
1 ;
2 ; xdata
3 ;
4 ; Static data for the Shared C Library
5 ;
6 ; © 1993-1998 Straylight
7 ;
8
9 ;----- Licensing note -------------------------------------------------------
10 ;
11 ; This file is part of Straylight's C library stubs (xstubs).
12 ;
13 ; xstubs is free software; you can redistribute it and/or modify
14 ; it under the terms of the GNU General Public License as published by
15 ; the Free Software Foundation; either version 2, or (at your option)
16 ; any later version.
17 ;
18 ; xstubs is distributed in the hope that it will be useful,
19 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ; GNU General Public License for more details.
22 ;
23 ; You should have received a copy of the GNU General Public License
24 ; along with xstubs. If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
27 ;----- Setting up the macros ------------------------------------------------
28
29 GBLA current
30 current SETA 0
31
32 MACRO
33 $label OFFSET $off
34 ASSERT $off>=current
35 % $off-current
36 $label
37 current SETA $off
38 MEND
39
40 ;----- The data definitions -------------------------------------------------
41
42 AREA |Stub$$Data|,DATA,NOINIT
43
44 EXPORT xstub__kdata
45 EXPORT xstub__ekdata
46 EXPORT xstub__cdata
47 EXPORT xstub__ecdata
48
49 EXPORT |_stub_kallocExtendsWS|
50 EXPORT |__iob|
51 EXPORT |__ctype|
52 EXPORT |__errno|
53 EXPORT |__huge_val|
54
55 ;----- Kernel data ----------------------------------------------------------
56
57 xstub__kdata
58
59 |_stub_imageBase| OFFSET &0000
60 |_stub_rtsDataBase| OFFSET &0004
61 |_stub_rtsDataLimit| OFFSET &0008
62 |_stub_errorR12| OFFSET &000c
63 |_stub_errorBuffer| OFFSET &0010
64 |_stub_errorNumber| OFFSET &0014
65 |_stub_errorString| OFFSET &0018
66 |_stub_registerDump| OFFSET &007c
67 |_stub_oldAbortHandlers| OFFSET &00bc
68 |_stub_oldExitHandler| OFFSET &00cc
69 |_stub_oldMemoryLimit| OFFSET &00d4
70 |_stub_oldErrorHandler| OFFSET &00d8
71 |_stub_oldErrorR0| OFFSET &00dc
72 |_stub_oldErrorBuffer| OFFSET &00e0
73 |_stub_oldCallBackHandler| OFFSET &00e4
74 |_stub_oldEscapeHandler| OFFSET &00f0
75 |_stub_oldEventHandler| OFFSET &00f8
76 |_stub_oldUpCallHandler| OFFSET &0100
77 |_stub_languageEnvSave| OFFSET &0108
78 |_stub_hadEscape| OFFSET &0114
79 |_stub_kallocExtendsWS| OFFSET &0115
80 |_stub_inTrapHandler| OFFSET &0116
81 |_stub_beingDebugged| OFFSET &0117
82 |_stub_fpPresent| OFFSET &0118
83 |_stub_initialised| OFFSET &0119
84 |_stub_callbackInactive| OFFSET &011a
85 |_stub_unused_byte_2| OFFSET &011b
86 |_stub_IIHandlerInData| OFFSET &011c
87 |_stub_PAHandlerInData| OFFSET &0128
88 |_stub_DAHandlerInData| OFFSET &0134
89 |_stub_AEHandlerInData| OFFSET &0140
90 |_stub_eventCode| OFFSET &014c
91 |_stub_eventUserR13| OFFSET &0150
92 |_stub_eventRegisters| OFFSET &0154
93 |_stub_fastEventStack| OFFSET &0184
94 |_stub_fastEventStackEnd| OFFSET &0284
95 |_stub_heapTop| OFFSET &0284
96 |_stub_heapLimit| OFFSET &0288
97 |_stub_allocProc| OFFSET &028c
98 |_stub_freeProc| OFFSET &0290
99 |_stub_returnCode| OFFSET &0294
100 |_stub_moduleDataWord| OFFSET &0298
101 |_stub_APCS_A_Client| OFFSET &029c
102 |_stub_escapeSeen| OFFSET &029d
103 |_stub_unwinding| OFFSET &029e
104 |_stub_underDesktop| OFFSET &029f
105 |_stub_heapBase| OFFSET &02a0
106 |_stub_ArgString| OFFSET &02a4
107 |_stub_heapExtender| OFFSET &02a8
108 |_stub_knownSlotSize| OFFSET &02ac
109 |_stub_initSlotSize| OFFSET &02b0
110 |_stub_lk_RestoreOSHandlers| OFFSET &02b4
111 |_stub_extendChunk| OFFSET &02b8
112 |_stub_rootStackChunk| OFFSET &02bc
113 |_stub_returnCodeLimit| OFFSET &02c0
114 |_stub_unused| OFFSET &02cc
115
116 |_stub_kernelSpace| OFFSET &031c
117
118 xstub__ekdata
119
120 ;----- C library data -------------------------------------------------------
121
122 xstub__cdata
123
124 |__errno| OFFSET &031c
125 |__iob| OFFSET &0320
126 |_interrupts_off| OFFSET &05a0
127 |_stub__saved_interrupt| OFFSET &05a4
128 |_stub_ctype_eof| OFFSET &05a8
129 |__ctype| OFFSET &05ac
130 |__huge_val| OFFSET &06ac
131 |_stub_stack_o_flag| OFFSET &06b4
132 |_stub_inSignalHandler| OFFSET &06b5
133 |_stub_| OFFSET &06b6
134 |_stub_ClibSpace| OFFSET &0e64
135
136 xstub__ecdata
137
138 END