2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
26 * This module only exists because I don't know how to get the silly C compiler
27 * and/or linker to generate data areas that are aligned on a particular boundary.
28 * And, this stuff is in the V=R mapped area.
30 * Do the following for each:
32 * .size name,size-in-bytes
33 * .type area-name,@object
37 * .set .,.+size-in-bytes
39 * So long as I'm being pedantic, always make sure that the most aligned,
40 * i.e., the largest power-of-twos, are first and then descend to the smallest.
41 * If you don't, and you are not careful and hand calculate, you'll end up
42 * with holes and waste storage. I hate C.
44 * Define the sizes in genassym.c
51 #include <ppc/proc_reg.h>
55 ; NOTE: We need this only if PREEMPTSTACK is set to non-zero in hw_lock.
56 ; Make sure they are set to the same thing
58 #define PREEMPTSTACK 0
62 /* 1024-byte aligned areas */
64 .globl EXT(per_proc_info)
66 EXT(per_proc_info): ; Per processor data area
67 .fill (ppSize*NCPUS)/4,4,0 ; (filled with 0s)
69 /* 512-byte aligned areas */
71 .globl EXT(kernel_pmap_store) ; This is the kernel_pmap
73 EXT(kernel_pmap_store):
77 /* 256-byte aligned areas */
79 .globl EXT(GratefulDebWork)
81 EXT(GratefulDebWork): ; Enough for 2 rows of 8 chars of 16-pixel wide 32-bit pixels and a 256 byte work area
89 .globl EXT(hw_counts) ; Counter banks per processor
97 ; NOTE: We need this only if PREEMPTSTACK is set to non-zero in hw_lock.
100 .globl EXT(DBGpreempt) ; preemption debug stack
103 .set .,.+(NCPUS*PREEMPTSTACK*16)
107 /* 128-byte aligned areas */
109 .globl EXT(saveanchor)
122 .long EXT(traceTableBeg) ; The next trace entry to use
124 /* .long 0x02000000 */ /* Only alignment exceptions enabled */
125 .long 0xFFFFFFFF /* All enabled */
126 /* .long 0xFBBFFFFF */ /* EXT and DEC disabled */
127 /* .long 0xFFBFFFFF */ /* DEC disabled */
129 .long 0x00000000 ; All disabled on non-debug systems
131 .long EXT(traceTableBeg) ; Start of the trace table
132 .long EXT(traceTableEnd) ; End (wrap point) of the trace
133 .long 0 ; Saved mask while in debugger
145 .globl EXT(free_mappings)
151 .globl EXT(syncClkSpot)
175 /* 32-byte aligned areas */
184 #include <ppc/hexfont.h>
186 .globl EXT(QNaNbarbarian)
190 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
191 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
192 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
193 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
195 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
196 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
197 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
198 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
213 /* 8-byte aligned areas */
215 .globl EXT(FloatInit)
219 .long 0xC24BC195 /* Initial value */
220 .long 0x87859393 /* of floating point registers */
221 .long 0xE681A2C8 /* and others */
224 .globl EXT(DebugWork)