]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/i386_init.c
xnu-3789.51.2.tar.gz
[apple/xnu.git] / osfmk / i386 / i386_init.c
index d4d22ae57ed6f129f6df8cf449548cde734f5c33..2d8abbdb6f4e7de5a76a63c896fe213f10618fb2 100644 (file)
@@ -117,7 +117,12 @@ extern const char  version[];
 extern const char      version_variant[];
 extern int             nx_enabled;
 
-uint64_t               physmap_base, physmap_max;
+/*
+ * Set initial values so that ml_phys_* routines can use the booter's ID mapping
+ * to touch physical space before the kernel's physical aperture exists.
+ */
+uint64_t               physmap_base = 0;
+uint64_t               physmap_max = 4*GB;
 
 pd_entry_t             *KPTphys;
 pd_entry_t             *IdlePTD;