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.
41 .section __DATA, __data // Aligned data
45 * Exception stack; this is above the interrupt stack so we don't squash the interrupt
46 * stack on an exception.
48 .global EXT(excepstack)
51 .globl EXT(excepstack_top)
56 .globl EXT(intstack) // Boot processor IRQ stack
59 .globl EXT(intstack_top)
63 .align 12 // Page aligned Section
65 .globl EXT(fiqstack) // Boot processor FIQ stack
67 .space (4096) // One page size
68 .globl EXT(fiqstack_top) // Boot processor FIQ stack top
71 .globl EXT(CpuDataEntries)
72 .align 12 // Page aligned
73 LEXT(CpuDataEntries) // Cpu Data Entry Array
74 .space (cdeSize_NUM*MAX_CPUS_NUM),0 // (filled with 0s)
76 .globl EXT(BootCpuData)
77 .align 12 // Page aligned
78 LEXT(BootCpuData) // Per cpu data area
79 .space cdSize_NUM,0 // (filled with 0s)
81 .align 3 // unsigned long long aligned Section
82 .globl EXT(RTClockData)
83 LEXT(RTClockData) // Real Time clock area
84 .space RTCLOCKDataSize_NUM,0 // (filled with 0s)
88 .globl EXT(vfptrash_data)
90 .fill 64, 4, 0xca55e77e
93 // Must align to 16K here, due to <rdar://problem/33268668>
94 .global EXT(kd_early_buffer)
96 LEXT(kd_early_buffer) // space for kdebug's early event buffer
100 .section __DATA, __const
102 #if defined(KERNEL_INTEGRITY_KTRR)
103 /* reserve space for read only page tables */
105 LEXT(ropagetable_begin)
108 LEXT(ropagetable_begin)
109 #endif /* defined(KERNEL_INTEGRITY_KTRR)*/
111 LEXT(ropagetable_end)
113 .globl EXT(ropagetable_begin)
114 .globl EXT(ropagetable_end)
115 #endif /* __arm64__ */