]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/arm64/lowglobals.h
xnu-4903.270.47.tar.gz
[apple/xnu.git] / osfmk / arm64 / lowglobals.h
index c4d0c3df0a9bbd9b640b5d290efa2e7665887100..12aab8548551e859b0851e3bae284bf629fa41a6 100644 (file)
@@ -28,8 +28,8 @@
 /*
  *             Header files for the Low Memory Globals (lg)
  */
-#ifndef        _LOW_MEMORY_GLOBALS_H_
-#define        _LOW_MEMORY_GLOBALS_H_
+#ifndef _LOW_MEMORY_GLOBALS_H_
+#define _LOW_MEMORY_GLOBALS_H_
 
 #include <mach/mach_types.h>
 #include <mach/vm_types.h>
 #include <mach/vm_prot.h>
 
 #ifndef __arm64__
-#error Wrong architecture - this file is meant for arm64
+#error  Wrong architecture - this file is meant for arm64
 #endif
 
-#define LOWGLO_LAYOUT_MAGIC            0xC0DEC0DE
+#define LOWGLO_LAYOUT_MAGIC             0xC0DEC0DE
 
 /*
  * This structure is bound to lowmem_vectors.c. Make sure changes here are
  * reflected there as well.
  */
 
-#pragma pack(8)                /* Make sure the structure stays as we defined it */
+#pragma pack(8)         /* Make sure the structure stays as we defined it */
 typedef struct lowglo {
-       unsigned char   lgVerCode[8];           /* 0xffffff8000002000 System verification code */
-       uint64_t                lgZero;                         /* 0xffffff8000002008 Constant 0 */
-       uint64_t                lgStext;                        /* 0xffffff8000002010 Start of kernel text */
-       uint64_t                lgVersion;                      /* 0xffffff8000002018 Pointer to kernel version string */
-       uint64_t                lgOSVersion;            /* 0xffffff8000002020 Pointer to OS version string */
-       uint64_t                lgKmodptr;                      /* 0xffffff8000002028 Pointer to kmod, debugging aid */
-       uint64_t                lgTransOff;                     /* 0xffffff8000002030 Pointer to kdp_trans_off, debugging aid */
-       uint64_t                lgRebootFlag;           /* 0xffffff8000002038 Pointer to debugger reboot trigger */
-       uint64_t                lgManualPktAddr;        /* 0xffffff8000002040 Pointer to manual packet structure */
-       uint64_t                lgAltDebugger;          /* 0xffffff8000002048 Pointer to reserved space for alternate kernel debugger */
-       uint64_t                lgPmapMemQ;                     /* 0xffffff8000002050 Pointer to PMAP memory queue */
-       uint64_t                lgPmapMemPageOffset;/* 0xffffff8000002058 Offset of physical page member in vm_page_t or vm_page_with_ppnum_t */
-       uint64_t                lgPmapMemChainOffset;/*0xffffff8000002060 Offset of listq in vm_page_t or vm_page_with_ppnum_t  */
-       uint64_t                lgStaticAddr;           /* 0xffffff8000002068 Static allocation address */
-       uint64_t                lgStaticSize;           /* 0xffffff8000002070 Static allocation size */
-       uint64_t                lgLayoutMajorVersion;   /* 0xffffff8000002078 Lowglo major layout version */
-       uint64_t                lgLayoutMagic;          /* 0xffffff8000002080 Magic value evaluated to determine if lgLayoutVersion is valid */
-       uint64_t                lgPmapMemStartAddr;     /* 0xffffff8000002088 Pointer to start of vm_page_t array */
-       uint64_t                lgPmapMemEndAddr;       /* 0xffffff8000002090 Pointer to end of vm_page_t array */
-       uint64_t                lgPmapMemPagesize;      /* 0xffffff8000002098 size of vm_page_t */
-       uint64_t                lgPmapMemFromArrayMask; /* 0xffffff80000020A0 Mask to indicate page is from vm_page_t array */
-       uint64_t                lgPmapMemFirstppnum;    /* 0xffffff80000020A8 physical page number of the first vm_page_t in the array */
-       uint64_t                lgPmapMemPackedShift;   /* 0xffffff80000020B0 alignment of packed pointer */
-       uint64_t                lgPmapMemPackedBaseAddr;/* 0xffffff80000020B8 base address of that packed pointers are relative to */
-       uint64_t                lgLayoutMinorVersion;   /* 0xffffff80000020C0 Lowglo minor layout version */
-       uint64_t                lgPageShift;            /* 0xffffff80000020C8 number of shifts from page number to size */
+       unsigned char   lgVerCode[8];           /* 0xffffff8000002000 System verification code */
+       uint64_t                lgZero;                         /* 0xffffff8000002008 Constant 0 */
+       uint64_t                lgStext;                        /* 0xffffff8000002010 Start of kernel text */
+       uint64_t                lgVersion;                      /* 0xffffff8000002018 Pointer to kernel version string */
+       uint64_t                lgOSVersion;            /* 0xffffff8000002020 Pointer to OS version string */
+       uint64_t                lgKmodptr;                      /* 0xffffff8000002028 Pointer to kmod, debugging aid */
+       uint64_t                lgTransOff;                     /* 0xffffff8000002030 Pointer to kdp_trans_off, debugging aid */
+       uint64_t                lgRebootFlag;           /* 0xffffff8000002038 Pointer to debugger reboot trigger */
+       uint64_t                lgManualPktAddr;        /* 0xffffff8000002040 Pointer to manual packet structure */
+       uint64_t                lgAltDebugger;          /* 0xffffff8000002048 Pointer to reserved space for alternate kernel debugger */
+       uint64_t                lgPmapMemQ;                     /* 0xffffff8000002050 Pointer to PMAP memory queue */
+       uint64_t                lgPmapMemPageOffset;/* 0xffffff8000002058 Offset of physical page member in vm_page_t or vm_page_with_ppnum_t */
+       uint64_t                lgPmapMemChainOffset;/*0xffffff8000002060 Offset of listq in vm_page_t or vm_page_with_ppnum_t  */
+       uint64_t                lgStaticAddr;           /* 0xffffff8000002068 Static allocation address */
+       uint64_t                lgStaticSize;           /* 0xffffff8000002070 Static allocation size */
+       uint64_t                lgLayoutMajorVersion;   /* 0xffffff8000002078 Lowglo major layout version */
+       uint64_t                lgLayoutMagic;          /* 0xffffff8000002080 Magic value evaluated to determine if lgLayoutVersion is valid */
+       uint64_t                lgPmapMemStartAddr;     /* 0xffffff8000002088 Pointer to start of vm_page_t array */
+       uint64_t                lgPmapMemEndAddr;       /* 0xffffff8000002090 Pointer to end of vm_page_t array */
+       uint64_t                lgPmapMemPagesize;      /* 0xffffff8000002098 size of vm_page_t */
+       uint64_t                lgPmapMemFromArrayMask; /* 0xffffff80000020A0 Mask to indicate page is from vm_page_t array */
+       uint64_t                lgPmapMemFirstppnum;    /* 0xffffff80000020A8 physical page number of the first vm_page_t in the array */
+       uint64_t                lgPmapMemPackedShift;   /* 0xffffff80000020B0 alignment of packed pointer */
+       uint64_t                lgPmapMemPackedBaseAddr;/* 0xffffff80000020B8 base address of that packed pointers are relative to */
+       uint64_t                lgLayoutMinorVersion;   /* 0xffffff80000020C0 Lowglo minor layout version */
+       uint64_t                lgPageShift;            /* 0xffffff80000020C8 number of shifts from page number to size */
 } lowglo;
 #pragma pack()