summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-02-12 04:35:37 +0000
committeralc <alc@FreeBSD.org>2003-02-12 04:35:37 +0000
commit20b766196ebea7469ef045efd27f361c4d5a1a29 (patch)
tree0cb2248e7519e895eb1687c32608d9e23d38bc25 /sys
parentb735f32b59cded34eda315b7eb7d797a79302fcb (diff)
downloadFreeBSD-src-20b766196ebea7469ef045efd27f361c4d5a1a29.zip
FreeBSD-src-20b766196ebea7469ef045efd27f361c4d5a1a29.tar.gz
Remove kptobj. Instead, use VM_ALLOC_NOOBJ.
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/pmap.c11
-rw-r--r--sys/i386/i386/pmap.c11
2 files changed, 4 insertions, 18 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 8e73434..46d8bb5 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -162,8 +162,6 @@ static boolean_t pmap_initialized = FALSE; /* Has pmap_init completed? */
static int pgeflag; /* PG_G or-in */
static int pseflag; /* PG_PS or-in */
-static vm_object_t kptobj;
-
static int nkpt;
vm_offset_t kernel_vm_end;
extern u_int32_t KERNend;
@@ -490,11 +488,6 @@ pmap_init(phys_start, phys_end)
int initial_pvs;
/*
- * object for kernel page table pages
- */
- kptobj = vm_object_allocate(OBJT_DEFAULT, NKPDE);
-
- /*
* Allocate memory for random pmap data structures. Includes the
* pv_head_table.
*/
@@ -1580,8 +1573,8 @@ pmap_growkernel(vm_offset_t addr)
/*
* This index is bogus, but out of the way
*/
- nkpg = vm_page_alloc(kptobj, nkpt,
- VM_ALLOC_SYSTEM | VM_ALLOC_WIRED);
+ nkpg = vm_page_alloc(NULL, nkpt,
+ VM_ALLOC_NOOBJ | VM_ALLOC_SYSTEM | VM_ALLOC_WIRED);
if (!nkpg)
panic("pmap_growkernel: no memory to grow kernel");
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 8e73434..46d8bb5 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -162,8 +162,6 @@ static boolean_t pmap_initialized = FALSE; /* Has pmap_init completed? */
static int pgeflag; /* PG_G or-in */
static int pseflag; /* PG_PS or-in */
-static vm_object_t kptobj;
-
static int nkpt;
vm_offset_t kernel_vm_end;
extern u_int32_t KERNend;
@@ -490,11 +488,6 @@ pmap_init(phys_start, phys_end)
int initial_pvs;
/*
- * object for kernel page table pages
- */
- kptobj = vm_object_allocate(OBJT_DEFAULT, NKPDE);
-
- /*
* Allocate memory for random pmap data structures. Includes the
* pv_head_table.
*/
@@ -1580,8 +1573,8 @@ pmap_growkernel(vm_offset_t addr)
/*
* This index is bogus, but out of the way
*/
- nkpg = vm_page_alloc(kptobj, nkpt,
- VM_ALLOC_SYSTEM | VM_ALLOC_WIRED);
+ nkpg = vm_page_alloc(NULL, nkpt,
+ VM_ALLOC_NOOBJ | VM_ALLOC_SYSTEM | VM_ALLOC_WIRED);
if (!nkpg)
panic("pmap_growkernel: no memory to grow kernel");
OpenPOWER on IntegriCloud