2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * This module only exists because I don't know how to get the silly C compiler
24 * and/or linker to generate data areas that are aligned on a particular boundary.
25 * And, this stuff is in the V=R mapped area.
27 * Do the following for each:
29 * .size name,size-in-bytes
30 * .type area-name,@object
34 * .set .,.+size-in-bytes
36 * So long as I'm being pedantic, always make sure that the most aligned,
37 * i.e., the largest power-of-twos, are first and then descend to the smallest.
38 * If you don't, and you are not careful and hand calculate, you'll end up
39 * with holes and waste storage. I hate C.
41 * 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>
54 ; NOTE: We need this only if PREEMPTSTACK is set to non-zero in hw_lock.
55 ; Make sure they are set to the same thing
57 #define PREEMPTSTACK 0
61 /* 4096-byte aligned areas */
63 .globl EXT(per_proc_info)
65 EXT(per_proc_info): ; Per processor data area
66 .space (ppSize*NCPUS),0 ; (filled with 0s)
68 /* 512-byte aligned areas */
70 .globl EXT(kernel_pmap_store) ; This is the kernel_pmap
72 EXT(kernel_pmap_store):
76 /* 256-byte aligned areas */
78 .globl EXT(GratefulDebWork)
80 EXT(GratefulDebWork): ; Enough for 2 rows of 8 chars of 16-pixel wide 32-bit pixels and a 256 byte work area
91 ; NOTE: We need this only if PREEMPTSTACK is set to non-zero in hw_lock.
94 .globl EXT(DBGpreempt) ; preemption debug stack
97 .set .,.+(NCPUS*PREEMPTSTACK*16)
101 /* 128-byte aligned areas */
113 .globl EXT(free_mappings)
119 .globl EXT(syncClkSpot)
143 /* 32-byte aligned areas */
152 #include <ppc/hexfont.h>
154 .globl EXT(QNaNbarbarian)
158 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
159 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
160 .long 0x7FFFDEAD /* This is a quiet not-a-number which is a "known" debug value */
161 .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 */
165 .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 */
168 /* 8-byte aligned areas */
170 .globl EXT(FloatInit)
174 .long 0xC24BC195 /* Initial value */
175 .long 0x87859393 /* of floating point registers */
176 .long 0xE681A2C8 /* and others */
179 .globl EXT(DebugWork)
199 * Interrupt and debug stacks go here
203 .globl EXT(FixedStackStart)
204 EXT(FixedStackStart):
208 .set .,.+INTSTACK_SIZE*NCPUS
210 /* Debugger stack - used by the debugger if present */
211 /* NOTE!!! Keep the debugger stack right after the interrupt stack */
215 .set ., .+KERNEL_STACK_SIZE*NCPUS
217 .globl EXT(FixedStackEnd)
221 .globl EXT(intstack_top_ss)
222 EXT(intstack_top_ss):
223 .long EXT(intstack)+INTSTACK_SIZE-FM_SIZE /* intstack_top_ss points to the top of interrupt stack */
226 .globl EXT(debstack_top_ss)
227 EXT(debstack_top_ss):
229 .long EXT(debstack)+KERNEL_STACK_SIZE-FM_SIZE /* debstack_top_ss points to the top of debug stack */
231 .globl EXT(debstackptr)
233 .long EXT(debstack)+KERNEL_STACK_SIZE-FM_SIZE