]> git.saurik.com Git - apple/xnu.git/blame - osfmk/ppc/lowglobals.h
xnu-792.13.8.tar.gz
[apple/xnu.git] / osfmk / ppc / lowglobals.h
CommitLineData
55e303ae 1/*
91447636 2 * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
55e303ae 3 *
8ad349bb 4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
55e303ae 5 *
8ad349bb
A
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@
55e303ae
A
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
55e303ae
A
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>
91447636 44#include <ppc/mappings.h>
55e303ae
A
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 */
59typedef 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 */
91447636
A
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 */
3a60a9f5
A
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 */
55e303ae
A
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 */
91447636
A
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 */
55e303ae
A
85 unsigned int lgKillResv; /* 5300 line used to kill reservations */
86 unsigned int lgKillResvpad[31]; /* 5304 pad reservation kill line */
a3d08fcd
A
87
88 unsigned int lgRsv380[32]; /* 5380 - 5400 reserved */
89
90 unsigned int lgRsv400[32]; /* 5400 - 5480 reserved */
5d5c5d0d
A
91 uint32_t lgKmodptr; /* 0x5480 Pointer to kmod, debugging aid */
92 uint32_t lgTransOff; /* 0x5484 Pointer to kdp_trans_off, debugging aid */
93 uint32_t lgReadIO; /* 0x5488 Pointer to kdp_read_io, debugging aid */
94 uint32_t lgDevSlot1; /* 0x548C For developer use */
95 uint32_t lgDevSlot2; /* 0x5490 For developer use */
96 uint32_t lgRsv494[731]; /* 0x5494 reserved - push to 1 page */
55e303ae
A
97
98} lowglo;
99
100extern lowglo lowGlo;
101
102#endif /* _LOW_MEMORY_GLOBALS_H_ */