]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/ppc/lowglobals.h
861d9034a73b38fd2518fb5d3ea5998b7ade82cf
2 * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
23 * Header files for the Low Memory Globals (lg)
25 #ifndef _LOW_MEMORY_GLOBALS_H_
26 #define _LOW_MEMORY_GLOBALS_H_
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>
39 * Don't change these structures unless you change the corresponding assembly code
40 * which is in lowmem_vectors.s
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
50 #pragma pack(4) /* Make sure the structure stays as we defined it */
51 typedef struct lowglo
{
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 lgMaxDec
; /* 5034 Maximum decrementer we can set */
64 unsigned int lgPmsCtlp
; /* 5038 Pointer to power management stepper control */
65 unsigned int lgRsv03C
[17]; /* 503C reserved */
66 traceWork lgTrcWork
; /* 5080 Tracing control block - trcWork */
67 unsigned int lgRsv0A0
[24]; /* 50A0 reserved */
68 struct Saveanchor lgSaveanchor
; /* 5100 Savearea anchor - saveanchor */
69 unsigned int lgRsv140
[16]; /* 5140 reserved */
70 unsigned int lgTlbieLck
; /* 5180 TLBIE lock */
71 unsigned int lgRsv184
[31]; /* 5184 reserved - push to next line */
72 struct diagWork lgdgWork
; /* 5200 Start of diagnostic work area */
73 unsigned int lglcksWork
; /* 5220 lcks option */
74 unsigned int lgRsv224
[23]; /* 5224 reserved */
75 pcfg lgpPcfg
[8]; /* 5280 Page configurations */
76 unsigned int lgRst2A0
[24]; /* 52A0 reserved */
77 unsigned int lgKillResv
; /* 5300 line used to kill reservations */
78 unsigned int lgKillResvpad
[31]; /* 5304 pad reservation kill line */
80 unsigned int lgRsv380
[32]; /* 5380 - 5400 reserved */
82 unsigned int lgRsv400
[32]; /* 5400 - 5480 reserved */
83 uint32_t lgKmodptr
; /* 0x5480 Pointer to kmod, debugging aid */
84 uint32_t lgTransOff
; /* 0x5484 Pointer to kdp_trans_off, debugging aid */
85 uint32_t lgReadIO
; /* 0x5488 Pointer to kdp_read_io, debugging aid */
86 uint32_t lgDevSlot1
; /* 0x548C For developer use */
87 uint32_t lgDevSlot2
; /* 0x5490 For developer use */
88 uint32_t lgRsv494
[731]; /* 0x5494 reserved - push to 1 page */
94 #endif /* _LOW_MEMORY_GLOBALS_H_ */