]> git.saurik.com Git - apple/xnu.git/blob - osfmk/x86_64/lowmem_vectors.s
xnu-1456.1.26.tar.gz
[apple/xnu.git] / osfmk / x86_64 / lowmem_vectors.s
1 /*
2 * Copyright (c) 2000-2006 Apple Computer, 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
29 /*
30 * @OSF_COPYRIGHT@
31 */
32 /*
33 * Mach Operating System
34 * Copyright (c) 1991,1990 Carnegie Mellon University
35 * All Rights Reserved.
36 *
37 * Permission to use, copy, modify and distribute this software and its
38 * documentation is hereby granted, provided that both the copyright
39 * notice and this permission notice appear in all copies of the
40 * software, derivative works or modified versions, and any portions
41 * thereof, and that both notices appear in supporting documentation.
42 *
43 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
44 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
45 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
46 *
47 * Carnegie Mellon requests users of this software to return to
48 *
49 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
50 * School of Computer Science
51 * Carnegie Mellon University
52 * Pittsburgh PA 15213-3890
53 *
54 * any improvements or extensions that they make and grant Carnegie Mellon
55 * the rights to redistribute these changes.
56 */
57
58 #include <platforms.h>
59 #include <mach_kdb.h>
60 #include <mach_kdp.h>
61
62 #include <i386/asm.h>
63 #include <i386/proc_reg.h>
64 #include <i386/postcode.h>
65 #include <assym.s>
66
67
68 /*
69 * on x86_64 the low mem vectors live here and get mapped to 0xffffff8000200000 at
70 * system startup time
71 */
72
73 .text
74 .align 12
75 .globl EXT(lowGlo)
76 EXT(lowGlo):
77
78 .ascii "Catfish " /* +0x000 System verification code */
79 .quad 0 /* +0x008 Double constant 0 */
80 .quad 0
81 .quad 0 /* +0x018 Reserved */
82 .quad 0 /* +0x020 Reserved */
83 .quad 0 /* +0x028 Reserved */
84 .quad EXT(version) /* +0x030 Pointer to kernel version string */
85 .fill 560, 4, 0 /* +0x038 Reserved - rdar://problem/5783217 */
86 .quad EXT(kmod) /* +0x8f8 Pointer to kmod, debugging aid */
87 #if MACH_KDP
88 .quad EXT(kdp_trans_off) /* +0x900 Pointer to kdp_trans_off, debugging aid */
89 .quad EXT(kdp_read_io) /* +0x908 Pointer to kdp_read_io, debugging aid */
90 #else
91 .quad 0 /* +0x900 Reserved */
92 .quad 0 /* +0x908 Reserved */
93 #endif
94 .quad 0 /* +0x910 Reserved for developer use */
95 .quad 0 /* +0x918 Reserved for developer use */
96 .quad EXT(osversion) /* +0x920 Pointer to osversion string */
97 #if MACH_KDP
98 .quad EXT(flag_kdp_trigger_reboot) /* +0x928 Pointer to debugger reboot trigger */
99 #else
100 .quad 0 /* +0x928 Reserved */
101 #endif
102 .fill 436, 4, 0 /* pad to 0x1000 (page size) - rdar://problem/5783217 */