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