]> git.saurik.com Git - apple/xnu.git/blob - osfmk/ppc/lowglobals.h
d678bfd126ff0939d3d4906c6dd6ae4783ec4a0b
[apple/xnu.git] / osfmk / ppc / lowglobals.h
1 /*
2 * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_OSREFERENCE_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
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
14 * agreement.
15 *
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
18 * file.
19 *
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
27 *
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
29 */
30 /*
31 * Header files for the Low Memory Globals (lg)
32 */
33 #ifndef _LOW_MEMORY_GLOBALS_H_
34 #define _LOW_MEMORY_GLOBALS_H_
35
36 #include <mach/mach_types.h>
37 #include <mach/vm_types.h>
38 #include <mach/machine/vm_types.h>
39 #include <mach/vm_prot.h>
40 #include <ppc/proc_reg.h>
41 #include <ppc/savearea.h>
42 #include <ppc/low_trace.h>
43 #include <ppc/Diagnostics.h>
44 #include <ppc/mappings.h>
45
46 /*
47 * Don't change these structures unless you change the corresponding assembly code
48 * which is in lowmem_vectors.s
49 */
50
51 /*
52 * This is where we put constants, pointers, and data areas that must be accessed
53 * quickly through assembler. They are designed to be accessed directly with
54 * absolute addresses, not via a base register. This is a global area, and not
55 * per processor.
56 */
57
58 #pragma pack(4) /* Make sure the structure stays as we defined it */
59 typedef struct lowglo {
60
61 unsigned long lgForceAddr[5*1024]; /* 0000 Force to page 5 */
62 unsigned char lgVerCode[8]; /* 5000 System verification code */
63 unsigned long long lgZero; /* 5008 Double constant 0 */
64 unsigned int lgPPStart; /* 5010 Start of per_proc blocks */
65 unsigned int lgCHUDXNUfnStart; /* 5014 CHUD XNU function glue table */
66 unsigned int lgMckFlags; /* 5018 Machine check flags */
67 unsigned int lgVersion; /* 501C Pointer to kernel version string */
68 uint64_t lgPMWvaddr; /* 5020 physical memory window virtual address */
69 uint64_t lgUMWvaddr; /* 5028 user memory window virtual address */
70 unsigned int lgVMMforcedFeats; /* 5030 VMM boot-args forced feature flags */
71 unsigned int lgMaxDec; /* 5034 Maximum decrementer we can set */
72 unsigned int lgPmsCtlp; /* 5038 Pointer to power management stepper control */
73 unsigned int lgRsv03C[17]; /* 503C reserved */
74 traceWork lgTrcWork; /* 5080 Tracing control block - trcWork */
75 unsigned int lgRsv0A0[24]; /* 50A0 reserved */
76 struct Saveanchor lgSaveanchor; /* 5100 Savearea anchor - saveanchor */
77 unsigned int lgRsv140[16]; /* 5140 reserved */
78 unsigned int lgTlbieLck; /* 5180 TLBIE lock */
79 unsigned int lgRsv184[31]; /* 5184 reserved - push to next line */
80 struct diagWork lgdgWork; /* 5200 Start of diagnostic work area */
81 unsigned int lglcksWork; /* 5220 lcks option */
82 unsigned int lgRsv224[23]; /* 5224 reserved */
83 pcfg lgpPcfg[8]; /* 5280 Page configurations */
84 unsigned int lgRst2A0[24]; /* 52A0 reserved */
85 unsigned int lgKillResv; /* 5300 line used to kill reservations */
86 unsigned int lgKillResvpad[31]; /* 5304 pad reservation kill line */
87
88 unsigned int lgRsv380[32]; /* 5380 - 5400 reserved */
89
90 unsigned int lgRsv400[32]; /* 5400 - 5480 reserved */
91
92 uint32_t lgRsv480[704]; /* 5480 reserved - push to 1 page */
93
94 } lowglo;
95
96 extern lowglo lowGlo;
97
98 #endif /* _LOW_MEMORY_GLOBALS_H_ */