X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d7e50217d7adf6e52786a38bcaa4cd698cb9a79e..43866e378188c25dd1e2208016ab3cbeb086ae6c:/osfmk/vm/vm_init.c diff --git a/osfmk/vm/vm_init.c b/osfmk/vm/vm_init.c index 26bd959e5..37e0e6a75 100644 --- a/osfmk/vm/vm_init.c +++ b/osfmk/vm/vm_init.c @@ -106,9 +106,8 @@ vm_mem_bootstrap(void) if (PE_parse_boot_arg("zsize", &zsize)) zsize = zsize * 1024 * 1024; else { - zsize = sane_size >> 2; /* Get target zone size as 1/4 of physical memory */ + zsize = mem_size >> 2; /* Get target zone size as 1/4 of physical memory */ } - if(zsize < ZONE_MAP_MIN) zsize = ZONE_MAP_MIN; /* Clamp to min */ if(zsize > ZONE_MAP_MAX) zsize = ZONE_MAP_MAX; /* Clamp to max */ zone_init(zsize); /* Allocate address space for zones */