]> git.saurik.com Git - apple/xnu.git/blame_incremental - osfmk/arm/data.s
xnu-4570.1.46.tar.gz
[apple/xnu.git] / osfmk / arm / data.s
... / ...
CommitLineData
1/*
2 * Copyright (c) 2007-2009 Apple Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5 *
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.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
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.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 */
28#include <arm/asm.h>
29#include <arm/proc_reg.h>
30#include "assym.s"
31
32#if defined(__arm__)
33#include "globals_asm.h"
34#elif defined(__arm64__)
35/* We're fine, use adrp, add */
36#else
37#error Unknown architecture.
38#endif
39
40
41 .section __DATA, __data // Aligned data
42
43#if __arm64__
44 /*
45 * Exception stack; this is above the interrupt stack so we don't squash the interrupt
46 * stack on an exception.
47 */
48 .global EXT(excepstack)
49LEXT(excepstack)
50 .space (4096)
51 .globl EXT(excepstack_top)
52LEXT(excepstack_top)
53#endif
54
55 /* IRQ stack */
56 .globl EXT(intstack) // Boot processor IRQ stack
57LEXT(intstack)
58 .space (4*4096)
59 .globl EXT(intstack_top)
60LEXT(intstack_top)
61
62
63 .align 12 // Page aligned Section
64
65 .globl EXT(fiqstack) // Boot processor FIQ stack
66LEXT(fiqstack)
67 .space (4096) // One page size
68 .globl EXT(fiqstack_top) // Boot processor FIQ stack top
69LEXT(fiqstack_top)
70
71 .globl EXT(CpuDataEntries)
72 .align 12 // Page aligned
73LEXT(CpuDataEntries) // Cpu Data Entry Array
74 .space (cdeSize_NUM*MAX_CPUS_NUM),0 // (filled with 0s)
75
76 .globl EXT(BootCpuData)
77 .align 12 // Page aligned
78LEXT(BootCpuData) // Per cpu data area
79 .space cdSize_NUM,0 // (filled with 0s)
80
81 .align 3 // unsigned long long aligned Section
82 .globl EXT(RTClockData)
83LEXT(RTClockData) // Real Time clock area
84 .space RTCLOCKDataSize_NUM,0 // (filled with 0s)
85
86#if TRASH_VFP_ON_SAVE
87 .align 4
88 .globl EXT(vfptrash_data)
89LEXT(vfptrash_data)
90 .fill 64, 4, 0xca55e77e
91#endif
92
93// Must align to 16K here, due to <rdar://problem/33268668>
94 .global EXT(kd_early_buffer)
95 .align 14
96LEXT(kd_early_buffer) // space for kdebug's early event buffer
97 .space 16*1024,0
98
99#if __arm64__
100 .section __DATA, __const
101
102#if defined(KERNEL_INTEGRITY_KTRR)
103/* reserve space for read only page tables */
104 .align 14
105LEXT(ropagetable_begin)
106 .space 16*16*1024,0
107#else
108LEXT(ropagetable_begin)
109#endif /* defined(KERNEL_INTEGRITY_KTRR)*/
110
111LEXT(ropagetable_end)
112
113 .globl EXT(ropagetable_begin)
114 .globl EXT(ropagetable_end)
115#endif /* __arm64__ */
116
117/* vim: set ts=4: */