diff options
author | cognet <cognet@FreeBSD.org> | 2004-11-13 14:41:27 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2004-11-13 14:41:27 +0000 |
commit | 35680a9d48f72383c921dc62f17421f25a725104 (patch) | |
tree | 88222e908db7e83da7fc0ec441c546bba29a13ed | |
parent | da083b47d02542174d39542215ae357a1af3f3b4 (diff) | |
download | FreeBSD-src-35680a9d48f72383c921dc62f17421f25a725104.zip FreeBSD-src-35680a9d48f72383c921dc62f17421f25a725104.tar.gz |
Use uma_prealloc() on the l2table_zone to prevent a LOR at startup.
-rw-r--r-- | sys/arm/arm/pmap.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index 2d3cc5a..f61e790 100644 --- a/sys/arm/arm/pmap.c +++ b/sys/arm/arm/pmap.c @@ -1921,9 +1921,6 @@ pmap_init(void) pvzone = uma_zcreate("PV ENTRY", sizeof (struct pv_entry), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_VM | UMA_ZONE_NOFREE); uma_prealloc(pvzone, MINPV); - l2table_zone = uma_zcreate("L2 Table", sizeof(struct l2_dtable), - NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, - UMA_ZONE_VM | UMA_ZONE_NOFREE); /* * Now it is safe to enable pv_table recording. */ @@ -2173,6 +2170,11 @@ pmap_init2() l2zone = uma_zcreate("L2 Table", L2_TABLE_SIZE_REAL, pmap_l2ptp_ctor, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_VM | UMA_ZONE_NOFREE); uma_prealloc(l2zone, 4096); + l2table_zone = uma_zcreate("L2 Table", sizeof(struct l2_dtable), + NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, + UMA_ZONE_VM | UMA_ZONE_NOFREE); + uma_prealloc(l2table_zone, 1024); + uma_zone_set_obj(pvzone, &pvzone_obj, pv_entry_max); uma_zone_set_obj(l2zone, &l2zone_obj, pv_entry_max); |