2 * Copyright (c) 1997 John D. Polstra
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * $Id: asnames.h,v 1.37 1999/07/20 06:52:33 msmith Exp $
29 #ifndef _MACHINE_ASNAMES_H_
30 #define _MACHINE_ASNAMES_H_
33 * This file is used by the kernel assembly language sources to provide
34 * the proper mapping between the global names used in assembly language
35 * code and the corresponding C symbols. By convention, all C symbols
36 * that are referenced from assembly language are prefixed with `_'.
37 * That happens to be the same prefix that the a.out compiler attaches
40 * When using the ELF compiler, C symbols are identical to the corresponding
41 * assembly language symbols. Thus the extra underscores cause problems.
42 * The defines in this file map the underscore names back to the proper
45 * Every global symbol that is referenced from both C source and assembly
46 * language source must have an entry in this file, or the kernel will
47 * not build properly using the ELF compiler.
49 * This file is included by <machine/asmacros.h>, and it is OK to rely
56 #define _APTDpde APTDpde
57 #define _APTmap APTmap
58 #define _CONST_QNaN CONST_QNaN
59 #define _IdlePTD IdlePTD
60 #define _KPTphys KPTphys
61 #define _MP_GDT MP_GDT
62 #define _MPgetlock MPgetlock
63 #define _MPrellock MPrellock
64 #define _MPtrylock MPtrylock
66 #define _PTDpde PTDpde
68 #define _SMP_prvspace SMP_prvspace
70 #define _Xalign Xalign
73 #define _Xcpuast Xcpuast
74 #define _Xcpucheckstate Xcpucheckstate
75 #define _Xcpustop Xcpustop
79 #define _Xfastintr0 Xfastintr0
80 #define _Xfastintr1 Xfastintr1
81 #define _Xfastintr10 Xfastintr10
82 #define _Xfastintr11 Xfastintr11
83 #define _Xfastintr12 Xfastintr12
84 #define _Xfastintr13 Xfastintr13
85 #define _Xfastintr14 Xfastintr14
86 #define _Xfastintr15 Xfastintr15
87 #define _Xfastintr16 Xfastintr16
88 #define _Xfastintr17 Xfastintr17
89 #define _Xfastintr18 Xfastintr18
90 #define _Xfastintr19 Xfastintr19
91 #define _Xfastintr2 Xfastintr2
92 #define _Xfastintr20 Xfastintr20
93 #define _Xfastintr21 Xfastintr21
94 #define _Xfastintr22 Xfastintr22
95 #define _Xfastintr23 Xfastintr23
96 #define _Xfastintr3 Xfastintr3
97 #define _Xfastintr4 Xfastintr4
98 #define _Xfastintr5 Xfastintr5
99 #define _Xfastintr6 Xfastintr6
100 #define _Xfastintr7 Xfastintr7
101 #define _Xfastintr8 Xfastintr8
102 #define _Xfastintr9 Xfastintr9
103 #define _Xforward_irq Xforward_irq
105 #define _Xfpusegm Xfpusegm
107 #define _Xint0x80_syscall Xint0x80_syscall
108 #define _Xintr0 Xintr0
109 #define _Xintr1 Xintr1
110 #define _Xintr10 Xintr10
111 #define _Xintr11 Xintr11
112 #define _Xintr12 Xintr12
113 #define _Xintr13 Xintr13
114 #define _Xintr14 Xintr14
115 #define _Xintr15 Xintr15
116 #define _Xintr16 Xintr16
117 #define _Xintr17 Xintr17
118 #define _Xintr18 Xintr18
119 #define _Xintr19 Xintr19
120 #define _Xintr2 Xintr2
121 #define _Xintr20 Xintr20
122 #define _Xintr21 Xintr21
123 #define _Xintr22 Xintr22
124 #define _Xintr23 Xintr23
125 #define _Xintr3 Xintr3
126 #define _Xintr4 Xintr4
127 #define _Xintr5 Xintr5
128 #define _Xintr6 Xintr6
129 #define _Xintr7 Xintr7
130 #define _Xintr8 Xintr8
131 #define _Xintr8254 Xintr8254
132 #define _Xintr9 Xintr9
133 #define _XintrRTC XintrRTC
134 #define _Xinvltlb Xinvltlb
135 #define _Xrendezvous Xrendezvous
137 #define _Xmissing Xmissing
143 #define _Xspuriousint Xspuriousint
145 #define _Xsyscall Xsyscall
147 #define __default_ldt _default_ldt
148 #define __ucodesel _ucodesel
149 #define __udatasel _udatasel
150 #define _alltraps alltraps
151 #define _ap_init ap_init
152 #define _apic_base apic_base
153 #define _apic_id_to_logical apic_id_to_logical
154 #define _apic_imen apic_imen
155 #define _apic_isrbit_location apic_isrbit_location
156 #define _apic_pin_trigger apic_pin_trigger
157 #define _apm_addr apm_addr
158 #define _apm_bios_call apm_bios_call
159 #define _apm_cs16_base apm_cs16_base
160 #define _apm_cs16_limit apm_cs16_limit
161 #define _apm_cs32_base apm_cs32_base
162 #define _apm_cs32_limit apm_cs32_limit
163 #define _apm_cs_entry apm_cs_entry
164 #define _apm_cs_limit apm_cs_limit
165 #define _apm_current_gdt_pdesc apm_current_gdt_pdesc
166 #define _apm_ds_base apm_ds_base
167 #define _apm_ds_limit apm_ds_limit
168 #define _apm_flags apm_flags
169 #define _apm_init_image apm_init_image
170 #define _apm_init_image_size apm_init_image_size
171 #define _apm_setup apm_setup
172 #define _apm_version apm_version
173 #define _arith_invalid arith_invalid
174 #define _arith_overflow arith_overflow
175 #define _arith_underflow arith_underflow
176 #define _astpending astpending
178 #define _bcopy_vector bcopy_vector
179 #define _bigJump bigJump
181 #define _bio_imask bio_imask
182 #define _bioscall_vector bioscall_vector
183 #define _bluetrap bluetrap
184 #define _bootCodeSeg bootCodeSeg
185 #define _bootDataSeg bootDataSeg
186 #define _bootMP bootMP
187 #define _bootMP_size bootMP_size
188 #define _bootSTK bootSTK
189 #define _boot_get_mplock boot_get_mplock
190 #define _bootdev bootdev
191 #define _boothowto boothowto
192 #define _bootinfo bootinfo
193 #define _bootstrap_gdt bootstrap_gdt
196 #define _cam_imask cam_imask
197 #define _checkstate_cpus checkstate_cpus
198 #define _checkstate_cpustate checkstate_cpustate
199 #define _checkstate_curproc checkstate_curproc
200 #define _checkstate_need_ast checkstate_need_ast
201 #define _checkstate_pc checkstate_pc
202 #define _checkstate_pending_ast checkstate_pending_ast
203 #define _checkstate_probed_cpus checkstate_probed_cpus
204 #define _clock_lock clock_lock
206 #define _copyin_vector copyin_vector
207 #define _copyout_vector copyout_vector
209 #define _cpl_lock cpl_lock
211 #define _cpu0prvpage cpu0prvpage
212 #define _cpu_apic_versions cpu_apic_versions
213 #define _cpu_class cpu_class
214 #define _cpu_feature cpu_feature
215 #define _cpu_high cpu_high
216 #define _cpu_id cpu_id
217 #define _cpu_num_to_apic_id cpu_num_to_apic_id
218 #define _cpu_switch cpu_switch
219 #define _cpu_vendor cpu_vendor
220 #define _cypoll cypoll
221 #define _default_halt default_halt
222 #define _denormal_operand denormal_operand
223 #define _div_small div_small
224 #define _divide_by_zero divide_by_zero
225 #define _divide_kernel divide_kernel
226 #define _do_page_zero_idle do_page_zero_idle
227 #define _doreti doreti
229 #define _eintrcnt eintrcnt
230 #define _eintrnames eintrnames
233 #define _exception exception
234 #define _fast_intr_lock fast_intr_lock
235 #define _fastmove fastmove
237 #define _generic_bcopy generic_bcopy
238 #define _generic_bzero generic_bzero
239 #define _generic_copyin generic_copyin
240 #define _generic_copyout generic_copyout
241 #define _get_align_lock get_align_lock
242 #define _get_altsyscall_lock get_altsyscall_lock
243 #define _get_fpu_lock get_fpu_lock
244 #define _get_isrlock get_isrlock
245 #define _get_mplock get_mplock
246 #define _get_syscall_lock get_syscall_lock
247 #define _getmicrouptime getmicrouptime
250 #define _ihandlers ihandlers
252 #define _imen_lock imen_lock
253 #define _in_vm86call in_vm86call
254 #define _init386 init386
255 #define _init_secondary init_secondary
256 #define _initial_bioscalls initial_bioscalls
257 #define _intr_countp intr_countp
258 #define _intr_handler intr_handler
259 #define _intr_mask intr_mask
260 #define _intr_nesting_level intr_nesting_level
261 #define _intr_unit intr_unit
262 #define _intrcnt intrcnt
263 #define _intrnames intrnames
264 #define _invltlb_ok invltlb_ok
265 #define _ioapic ioapic
266 #define _ipending ipending
267 #define _isr_lock isr_lock
268 #define _ivectors ivectors
269 #define _kernelname kernelname
270 #define _kstack kstack
272 #define _linux_sigcode linux_sigcode
273 #define _linux_szsigcode linux_szsigcode
274 #define _mask8254 mask8254
275 #define _maskRTC maskRTC
276 #define _mi_startup mi_startup
277 #define _microuptime microuptime
278 #define _mp_gdtbase mp_gdtbase
279 #define _mp_lock mp_lock
280 #define _mp_ncpus mp_ncpus
282 #define _net_imask net_imask
283 #define _netisr netisr
284 #define _netisrs netisrs
285 #define _nfs_diskless nfs_diskless
286 #define _nfs_diskless_valid nfs_diskless_valid
287 #define _normalize normalize
288 #define _normalize_nuo normalize_nuo
289 #define _npx_intrs_while_probing npx_intrs_while_probing
290 #define _npx_traps_while_probing npx_traps_while_probing
291 #define _npx_intr npx_intr
292 #define _npxsave npxsave
293 #define _ovbcopy_vector ovbcopy_vector
295 #define _pc98_system_parameter pc98_system_parameter
296 #define _poly_div16 poly_div16
297 #define _poly_div2 poly_div2
298 #define _poly_div4 poly_div4
299 #define _polynomial polynomial
300 #define _private_tss private_tss
301 #define _probeintr probeintr
302 #define _probetrap probetrap
304 #define _proc0paddr proc0paddr
306 #define _rcpoll rcpoll
307 #define _real_2op_NaN real_2op_NaN
308 #define _reg_div reg_div
309 #define _reg_u_add reg_u_add
310 #define _reg_u_div reg_u_div
311 #define _reg_u_mul reg_u_mul
312 #define _reg_u_sub reg_u_sub
313 #define _rel_mplock rel_mplock
314 #define _round_reg round_reg
316 #define _s_lock s_lock
317 #define _s_unlock s_unlock
318 #define _secondary_main secondary_main
319 #define _set_precision_flag_down set_precision_flag_down
320 #define _set_precision_flag_up set_precision_flag_up
321 #define _set_user_ldt set_user_ldt
324 #define _sigcode sigcode
325 #define _siopoll siopoll
326 #define _smp_active smp_active
327 #define _soft_imask soft_imask
328 #define _softclock softclock
329 #define _softnet_imask softnet_imask
330 #define _softtty_imask softtty_imask
333 #define _ss_lock ss_lock
334 #define _ss_unlock ss_unlock
335 #define _started_cpus started_cpus
336 #define _stopped_cpus stopped_cpus
337 #define _svr4_sigcode svr4_sigcode
338 #define _svr4_sys_context svr4_sys_context
339 #define _svr4_szsigcode svr4_szsigcode
340 #define _swi_dispatcher swi_dispatcher
341 #define _swi_generic swi_generic
342 #define _swi_null swi_null
343 #define _swi_vm swi_vm
344 #define _syscall syscall
345 #define _szsigcode szsigcode
348 #define _timer0_max_count timer0_max_count
349 #define _timer0_overflow_threshold timer0_overflow_threshold
350 #define _timer0_prescaler_count timer0_prescaler_count
352 #define _trap_by_wrmsr trap_by_wrmsr
353 #define _trapwrite trapwrite
354 #define _tsc_bias tsc_bias
355 #define _tsc_freq tsc_freq
356 #define _tsc_multiplier tsc_multiplier
357 #define _tty_imask tty_imask
358 #define _userconfig_from_boot userconfig_from_boot
360 #define _vec8254 vec8254
361 #define _vecRTC vecRTC
362 #define _vm86_emulate vm86_emulate
363 #define _vm86_prepcall vm86_prepcall
364 #define _vm86_sysarch vm86_sysarch
365 #define _vm86_trap vm86_trap
366 #define _vm86pa vm86pa
367 #define _vm86paddr vm86paddr
368 #define _vm86pcb vm86pcb
369 #define _vm_page_zero_idle vm_page_zero_idle
370 #define _want_resched want_resched
371 #define _whichidqs whichidqs
372 #define _whichqs whichqs
373 #define _whichrtqs whichrtqs
374 #define _wm_sqrt wm_sqrt
378 #if defined(SMP) || defined(__ELF__)
380 #define FS(x) %fs:gd_ ## x
385 #define _common_tss FS(common_tss)
386 #define _common_tssd FS(common_tssd)
387 #define _cpuid FS(cpuid)
388 #define _cpu_lockid FS(cpu_lockid)
389 #define _curpcb FS(curpcb)
390 #define _curproc FS(curproc)
391 #define _currentldt FS(currentldt)
392 #define _inside_intr FS(inside_intr)
393 #define _npxproc FS(npxproc)
394 #define _other_cpus FS(other_cpus)
395 #define _prv_CADDR1 FS(prv_CADDR1)
396 #define _prv_CADDR2 FS(prv_CADDR2)
397 #define _prv_CADDR3 FS(prv_CADDR3)
398 #define _prv_CMAP1 FS(prv_CMAP1)
399 #define _prv_CMAP2 FS(prv_CMAP2)
400 #define _prv_CMAP3 FS(prv_CMAP3)
401 #define _prv_PADDR1 FS(prv_PADDR1)
402 #define _prv_PMAP1 FS(prv_PMAP1)
403 #define _ss_eflags FS(ss_eflags)
404 #define _switchticks FS(switchticks)
405 #define _switchtime FS(switchtime)
406 #define _tss_gdt FS(tss_gdt)
407 #define _idlestack FS(idlestack)
408 #define _idlestack_top FS(idlestack_top)
412 #endif /* !_MACHINE_ASNAMES_H_ */