2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
24 * This module only exists because I don't know how to get the silly C compiler
25 * and/or linker to generate data areas that are aligned on a particular boundary.
26 * And, this stuff is in the V=R mapped area.
28 * Do the following for each:
30 * .size name,size-in-bytes
31 * .type area-name,@object
35 * .set .,.+size-in-bytes
37 * So long as I'm being pedantic, always make sure that the most aligned,
38 * i.e., the largest power-of-twos, are first and then descend to the smallest.
39 * If you don't, and you are not careful and hand calculate, you'll end up
40 * with holes and waste storage. I hate C.
42 * Define the sizes in genassym.c
48 #include <ppc/proc_reg.h>
49 #include <ppc/spec_reg.h>
50 #include <mach/ppc/vm_param.h>
55 /* 4096-byte aligned areas */
57 .globl EXT(PerProcTable)
59 EXT(PerProcTable): ; Per processor table
60 .space (ppeSize*MAX_CPUS),0 ; (filled with 0s)
62 .globl EXT(BootProcInfo)
64 EXT(BootProcInfo): ; Per processor data area
65 .space ppSize,0 ; (filled with 0s)
67 /* 512-byte aligned areas */
69 .globl EXT(kernel_pmap_store) ; This is the kernel_pmap
71 EXT(kernel_pmap_store):
75 /* 256-byte aligned areas */
77 .globl EXT(GratefulDebWork)
79 EXT(GratefulDebWork): ; Enough for 2 rows of 8 chars of 16-pixel wide 32-bit pixels and a 256 byte work area
87 /* 128-byte aligned areas */
99 .globl EXT(free_mappings)
117 /* 32-byte aligned areas */
126 #include <ppc/hexfont.h>
128 .globl EXT(QNaNbarbarian)
132 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
133 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
134 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
135 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
137 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
138 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
139 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
140 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
142 /* 8-byte aligned areas */
144 .globl EXT(FloatInit)
148 .long 0xC24BC195 /* Initial value */
149 .long 0x87859393 /* of floating point registers */
150 .long 0xE681A2C8 /* and others */
153 .globl EXT(DebugWork)
173 * Boot processor Interrupt and debug stacks go here.
176 /* in the __HIB section since the hibernate restore code uses this stack. */
177 .section __HIB, __data
183 .globl EXT(gIOHibernateRestoreStack)
184 EXT(gIOHibernateRestoreStack):
186 .set .,.+INTSTACK_SIZE
188 .globl EXT(gIOHibernateRestoreStackEnd)
189 EXT(gIOHibernateRestoreStackEnd):
191 /* back to the regular __DATA section. */
193 .section __DATA, __data
196 /* Debugger stack - used by the debugger if present */
200 .set ., .+KERNEL_STACK_SIZE
202 .section __DATA, __data