]>
Commit | Line | Data |
---|---|---|
0c530ab8 A |
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 | ||
33 | /* | |
34 | * Don't change these structures unless you change the corresponding assembly code | |
35 | * which is in lowmem_vectors.s | |
36 | */ | |
37 | ||
38 | /* | |
39 | * This is where we put constants, pointers, and data areas that must be accessed | |
40 | * quickly through assembler. They are designed to be accessed directly with | |
41 | * absolute addresses, not via a base register. This is a global area, and not | |
42 | * per processor. | |
43 | */ | |
44 | ||
45 | #pragma pack(4) /* Make sure the structure stays as we defined it */ | |
46 | typedef struct lowglo { | |
47 | ||
48 | unsigned char lgVerCode[8]; /* 0x2000 System verification code */ | |
49 | unsigned long long lgZero; /* 0x2008 Double constant 0 */ | |
50 | uint32_t lgRsv010[3]; /* 0x2010 Reserved */ | |
51 | uint32_t lgVersion; /* 0x201C Pointer to kernel version string */ | |
52 | uint32_t lgRsv020[280]; /* 0X2020 Reserved */ | |
53 | uint32_t lgKmodptr; /* 0x2480 Pointer to kmod, debugging aid */ | |
54 | uint32_t lgTransOff; /* 0x2484 Pointer to kdp_trans_off, debugging aid */ | |
55 | uint32_t lgRsv028; /* 0x2488 Reserved */ | |
56 | uint32_t lgDevSlot1; /* 0x248C For developer use */ | |
57 | uint32_t lgDevSlot2; /* 0x2490 For developer use */ | |
58 | uint32_t lgRsv494[731]; /* Reserved - push to 1 page */ | |
59 | } lowglo; | |
60 | ||
61 | ||
62 | #endif /* _LOW_MEMORY_GLOBALS_H_ */ |