summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-08-05 00:04:18 +0000
committeralc <alc@FreeBSD.org>2002-08-05 00:04:18 +0000
commit3b63a2bd2ba2519d666ad095db6bf3673247df6a (patch)
treec429a293b2e816cb77539b48becb94167473ff3a /sys/powerpc
parenta86f01c7176b2b4bc02ad8b92b300dec503849f2 (diff)
downloadFreeBSD-src-3b63a2bd2ba2519d666ad095db6bf3673247df6a.zip
FreeBSD-src-3b63a2bd2ba2519d666ad095db6bf3673247df6a.tar.gz
o Don't set PG_MAPPED or PG_WRITEABLE when a page is mapped
using pmap_kenter() or pmap_qenter(). o Use VM_ALLOC_WIRED in pmap_new_thread().
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/aim/mmu_oea.c9
-rw-r--r--sys/powerpc/powerpc/mmu_oea.c9
-rw-r--r--sys/powerpc/powerpc/pmap.c9
3 files changed, 6 insertions, 21 deletions
diff --git a/sys/powerpc/aim/mmu_oea.c b/sys/powerpc/aim/mmu_oea.c
index 789f40b..8e2fa7f 100644
--- a/sys/powerpc/aim/mmu_oea.c
+++ b/sys/powerpc/aim/mmu_oea.c
@@ -1532,12 +1532,8 @@ pmap_new_thread(struct thread *td)
/*
* Get a kernel stack page.
*/
- m = vm_page_grab(ksobj, i, VM_ALLOC_NORMAL | VM_ALLOC_RETRY);
-
- /*
- * Wire the page.
- */
- m->wire_count++;
+ m = vm_page_grab(ksobj, i,
+ VM_ALLOC_NORMAL | VM_ALLOC_RETRY | VM_ALLOC_WIRED);
/*
* Enter the page into the kernel address space.
@@ -1546,7 +1542,6 @@ pmap_new_thread(struct thread *td)
vm_page_wakeup(m);
vm_page_flag_clear(m, PG_ZERO);
- vm_page_flag_set(m, PG_MAPPED | PG_WRITEABLE);
m->valid = VM_PAGE_BITS_ALL;
}
}
diff --git a/sys/powerpc/powerpc/mmu_oea.c b/sys/powerpc/powerpc/mmu_oea.c
index 789f40b..8e2fa7f 100644
--- a/sys/powerpc/powerpc/mmu_oea.c
+++ b/sys/powerpc/powerpc/mmu_oea.c
@@ -1532,12 +1532,8 @@ pmap_new_thread(struct thread *td)
/*
* Get a kernel stack page.
*/
- m = vm_page_grab(ksobj, i, VM_ALLOC_NORMAL | VM_ALLOC_RETRY);
-
- /*
- * Wire the page.
- */
- m->wire_count++;
+ m = vm_page_grab(ksobj, i,
+ VM_ALLOC_NORMAL | VM_ALLOC_RETRY | VM_ALLOC_WIRED);
/*
* Enter the page into the kernel address space.
@@ -1546,7 +1542,6 @@ pmap_new_thread(struct thread *td)
vm_page_wakeup(m);
vm_page_flag_clear(m, PG_ZERO);
- vm_page_flag_set(m, PG_MAPPED | PG_WRITEABLE);
m->valid = VM_PAGE_BITS_ALL;
}
}
diff --git a/sys/powerpc/powerpc/pmap.c b/sys/powerpc/powerpc/pmap.c
index 789f40b..8e2fa7f 100644
--- a/sys/powerpc/powerpc/pmap.c
+++ b/sys/powerpc/powerpc/pmap.c
@@ -1532,12 +1532,8 @@ pmap_new_thread(struct thread *td)
/*
* Get a kernel stack page.
*/
- m = vm_page_grab(ksobj, i, VM_ALLOC_NORMAL | VM_ALLOC_RETRY);
-
- /*
- * Wire the page.
- */
- m->wire_count++;
+ m = vm_page_grab(ksobj, i,
+ VM_ALLOC_NORMAL | VM_ALLOC_RETRY | VM_ALLOC_WIRED);
/*
* Enter the page into the kernel address space.
@@ -1546,7 +1542,6 @@ pmap_new_thread(struct thread *td)
vm_page_wakeup(m);
vm_page_flag_clear(m, PG_ZERO);
- vm_page_flag_set(m, PG_MAPPED | PG_WRITEABLE);
m->valid = VM_PAGE_BITS_ALL;
}
}
OpenPOWER on IntegriCloud