2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_OSREFERENCE_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. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
29 * This module only exists because I don't know how to get the silly C compiler
30 * and/or linker to generate data areas that are aligned on a particular boundary.
31 * And, this stuff is in the V=R mapped area.
33 * Do the following for each:
35 * .size name,size-in-bytes
36 * .type area-name,@object
40 * .set .,.+size-in-bytes
42 * So long as I'm being pedantic, always make sure that the most aligned,
43 * i.e., the largest power-of-twos, are first and then descend to the smallest.
44 * If you don't, and you are not careful and hand calculate, you'll end up
45 * with holes and waste storage. I hate C.
47 * Define the sizes in genassym.c
53 #include <ppc/proc_reg.h>
54 #include <ppc/spec_reg.h>
55 #include <mach/ppc/vm_param.h>
60 /* 4096-byte aligned areas */
62 .globl EXT(PerProcTable)
64 EXT(PerProcTable): ; Per processor table
65 .space (ppeSize*MAX_CPUS),0 ; (filled with 0s)
67 .globl EXT(BootProcInfo)
69 EXT(BootProcInfo): ; Per processor data area
70 .space ppSize,0 ; (filled with 0s)
72 /* 512-byte aligned areas */
74 .globl EXT(kernel_pmap_store) ; This is the kernel_pmap
76 EXT(kernel_pmap_store):
80 /* 256-byte aligned areas */
82 .globl EXT(GratefulDebWork)
84 EXT(GratefulDebWork): ; Enough for 2 rows of 8 chars of 16-pixel wide 32-bit pixels and a 256 byte work area
92 /* 128-byte aligned areas */
104 .globl EXT(free_mappings)
122 /* 32-byte aligned areas */
131 #include <ppc/hexfont.h>
133 .globl EXT(QNaNbarbarian)
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 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
143 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
144 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
145 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
147 /* 8-byte aligned areas */
149 .globl EXT(FloatInit)
153 .long 0xC24BC195 /* Initial value */
154 .long 0x87859393 /* of floating point registers */
155 .long 0xE681A2C8 /* and others */
158 .globl EXT(DebugWork)
178 * Boot processor Interrupt and debug stacks go here.
181 /* in the __HIB section since the hibernate restore code uses this stack. */
182 .section __HIB, __data
188 .globl EXT(gIOHibernateRestoreStack)
189 EXT(gIOHibernateRestoreStack):
191 .set .,.+INTSTACK_SIZE
193 .globl EXT(gIOHibernateRestoreStackEnd)
194 EXT(gIOHibernateRestoreStackEnd):
196 /* back to the regular __DATA section. */
198 .section __DATA, __data
201 /* Debugger stack - used by the debugger if present */
205 .set ., .+KERNEL_STACK_SIZE
207 .section __DATA, __data