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>
52 #include <ppc/spec_reg.h>
53 #include <mach/ppc/vm_param.h>
57 ; NOTE: We need this only if PREEMPTSTACK is set to non-zero in hw_lock.
58 ; Make sure they are set to the same thing
60 #define PREEMPTSTACK 0
64 /* 4096-byte aligned areas */
66 .globl EXT(per_proc_info)
68 EXT(per_proc_info): ; Per processor data area
69 .space (ppSize*NCPUS),0 ; (filled with 0s)
71 /* 512-byte aligned areas */
73 .globl EXT(kernel_pmap_store) ; This is the kernel_pmap
75 EXT(kernel_pmap_store):
79 /* 256-byte aligned areas */
81 .globl EXT(GratefulDebWork)
83 EXT(GratefulDebWork): ; Enough for 2 rows of 8 chars of 16-pixel wide 32-bit pixels and a 256 byte work area
94 ; NOTE: We need this only if PREEMPTSTACK is set to non-zero in hw_lock.
97 .globl EXT(DBGpreempt) ; preemption debug stack
100 .set .,.+(NCPUS*PREEMPTSTACK*16)
104 /* 128-byte aligned areas */
116 .globl EXT(free_mappings)
122 .globl EXT(syncClkSpot)
146 /* 32-byte aligned areas */
155 #include <ppc/hexfont.h>
157 .globl EXT(QNaNbarbarian)
161 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
162 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
163 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
164 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
166 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
167 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
168 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
169 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
171 /* 8-byte aligned areas */
173 .globl EXT(FloatInit)
177 .long 0xC24BC195 /* Initial value */
178 .long 0x87859393 /* of floating point registers */
179 .long 0xE681A2C8 /* and others */
182 .globl EXT(DebugWork)
202 * Interrupt and debug stacks go here
206 .globl EXT(FixedStackStart)
207 EXT(FixedStackStart):
211 .set .,.+INTSTACK_SIZE*NCPUS
213 /* Debugger stack - used by the debugger if present */
214 /* NOTE!!! Keep the debugger stack right after the interrupt stack */
218 .set ., .+KERNEL_STACK_SIZE*NCPUS
220 .globl EXT(FixedStackEnd)
224 .globl EXT(intstack_top_ss)
225 EXT(intstack_top_ss):
226 .long EXT(intstack)+INTSTACK_SIZE-FM_SIZE /* intstack_top_ss points to the top of interrupt stack */
229 .globl EXT(debstack_top_ss)
230 EXT(debstack_top_ss):
232 .long EXT(debstack)+KERNEL_STACK_SIZE-FM_SIZE /* debstack_top_ss points to the top of debug stack */
234 .globl EXT(debstackptr)
236 .long EXT(debstack)+KERNEL_STACK_SIZE-FM_SIZE