]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ppc/mappings.h
xnu-792.6.22.tar.gz
[apple/xnu.git] / osfmk / ppc / mappings.h
index 9d7a7c75919c0650357f7482a3bada202a88312a..6d910c3defefb3754ce31d8c26b3366febc9d001 100644 (file)
@@ -336,7 +336,8 @@ typedef struct mappingblok {
 #define mapRtMapDup    7
 #define mapRtGuest     8
 #define mapRtEmpty     9
-#define mapRtSmash     0xA                                     /* Mapping already exists and doesn't match new mapping */
+#define mapRtSmash     10                                      /* Mapping already exists and doesn't match new mapping */
+#define mapRtBadSz     11                                      /* Requested size too big or more than 256MB and not mult of 32MB */
 
 /*
  *     This struct describes available physical page configurations
@@ -400,6 +401,7 @@ extern phys_entry_t  *mapping_phys_lookup(ppnum_t pp, unsigned int *pindex);        /*
 extern int                     mapalc1(struct mappingblok *mb);                        /* Finds and allcates a 1-bit mapping entry */
 extern int                     mapalc2(struct mappingblok *mb);                        /* Finds and allcates a 2-bit mapping entry */
 extern void                    ignore_zero_fault(boolean_t type);                      /* Sets up to ignore or honor any fault on page 0 access for the current thread */
+extern void                    mapping_hibernate_flush(void);
 
 extern void                    mapping_fake_zone_info(         /* return mapping usage stats as a fake zone info */
                                                int *count,