svn commit: r256041 - projects/amd64_xen_pv/sys/amd64/xen
Cherry G. Mathew
cherry at FreeBSD.org
Fri Oct 4 05:11:01 UTC 2013
Author: cherry
Date: Fri Oct 4 05:11:00 2013
New Revision: 256041
URL: http://svnweb.freebsd.org/changeset/base/256041
Log:
We now use vmem(9) instead of submaps to manage pv VA allocations.
Approved by: gibbs (implicit)
Modified:
projects/amd64_xen_pv/sys/amd64/xen/pmap.c
Modified: projects/amd64_xen_pv/sys/amd64/xen/pmap.c
==============================================================================
--- projects/amd64_xen_pv/sys/amd64/xen/pmap.c Fri Oct 4 04:15:18 2013 (r256040)
+++ projects/amd64_xen_pv/sys/amd64/xen/pmap.c Fri Oct 4 05:11:00 2013 (r256041)
@@ -220,7 +220,6 @@ extern char *console_page; /* The shared
extern struct xenstore_domain_interface *xen_store; /* xenstore page */
extern vm_map_t pv_map;
-vm_offset_t pv_minva, pv_maxva;
/* Index offset into a pagetable, for a given va */
static int
@@ -742,9 +741,6 @@ pmap_init(void)
/* Reserve pv VA space by allocating a submap */
KASSERT(kernel_map != 0, ("Initialising kernel submap before kernel_map!"));
- pv_map = kmem_suballoc(kernel_map, &pv_minva, &pv_maxva,
- sizeof(struct pv_chunk) * 100 /* XXX: Totally arbitrary */, 0);
- KASSERT(pv_map != NULL, ("Could not allocate kernel submap for pv_map!"));
gdtset = 1; /* xpq may assert for locking sanity from this point onwards */
More information about the svn-src-projects
mailing list