2 * Copyright (c) 2007-2009 Apple 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 #include <arm/proc_reg.h>
33 #include "globals_asm.h"
34 #elif defined(__arm64__)
35 /* We're fine, use adrp, add */
37 #error Unknown architecture.
40 .section __BOOTDATA, __data // Aligned data
44 .globl EXT(intstack_low_guard)
45 LEXT(intstack_low_guard)
46 .space (PAGE_MAX_SIZE_NUM)
49 .globl EXT(intstack) // Boot processor IRQ stack
51 .space (INTSTACK_SIZE_NUM)
52 .globl EXT(intstack_top)
55 .globl EXT(intstack_high_guard)
56 LEXT(intstack_high_guard)
57 .space (PAGE_MAX_SIZE_NUM)
59 /* Low guard for fiq/exception stack is shared w/ interrupt stack high guard */
63 .globl EXT(fiqstack) // Boot processor FIQ stack
65 .space (FIQSTACK_SIZE_NUM)
66 .globl EXT(fiqstack_top) // Boot processor FIQ stack top
69 .globl EXT(fiqstack_high_guard)
70 LEXT(fiqstack_high_guard)
71 .space (PAGE_MAX_SIZE_NUM)
75 .global EXT(excepstack)
77 .space (EXCEPSTACK_SIZE_NUM)
78 .globl EXT(excepstack_top)
81 .globl EXT(excepstack_high_guard)
82 LEXT(excepstack_high_guard)
83 .space (PAGE_MAX_SIZE_NUM)
87 // Must align to 16K here, due to <rdar://problem/33268668>
88 .global EXT(kd_early_buffer)
90 LEXT(kd_early_buffer) // space for kdebug's early event buffer
93 .section __DATA, __data // Aligned data
94 .align 3 // unsigned long long aligned Section
95 .globl EXT(RTClockData)
96 LEXT(RTClockData) // Real Time clock area
97 .space RTCLOCKDataSize_NUM,0 // (filled with 0s)
101 .globl EXT(vfptrash_data)
103 .fill 64, 4, 0xca55e77e
107 .section __DATA, __const
109 #if defined(KERNEL_INTEGRITY_KTRR) || defined(KERNEL_INTEGRITY_CTRR)
110 /* reserve space for read only page tables */
112 LEXT(ropagetable_begin)
113 #if XNU_TARGET_OS_OSX
114 // A big auxKC might need more page tables, especially because
115 // it's not block mapped.
116 // Note that we don't distuinguish between KASAN or not: With
117 // a KASAN kernel, the effective auxKC limit is smaller.
125 LEXT(ropagetable_begin)
126 #endif /* defined(KERNEL_INTEGRITY_KTRR) || defined(KERNEL_INTEGRITY_CTRR) */
128 LEXT(ropagetable_end)
130 .globl EXT(ropagetable_begin)
131 .globl EXT(ropagetable_end)
132 #endif /* __arm64__ */