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