diff options
author | peter <peter@FreeBSD.org> | 2002-02-27 09:51:33 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-02-27 09:51:33 +0000 |
commit | f2dee2e96fb9d27ab90c25bed77ca68fe1dbcaf9 (patch) | |
tree | 9dff19aa68b1b5fb938a1f6533c4971702c3e104 /sys/vm | |
parent | fddda3307dd74c84941a41b9226b67ad3a2f1a99 (diff) | |
download | FreeBSD-src-f2dee2e96fb9d27ab90c25bed77ca68fe1dbcaf9.zip FreeBSD-src-f2dee2e96fb9d27ab90c25bed77ca68fe1dbcaf9.tar.gz |
Back out all the pmap related stuff I've touched over the last few days.
There is some unresolved badness that has been eluding me, particularly
affecting uniprocessor kernels. Turning off PG_G helped (which is a bad
sign) but didn't solve it entirely. Userland programs still crashed.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_pager.c | 4 | ||||
-rw-r--r-- | sys/vm/vm_zone.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/vm_pager.c b/sys/vm/vm_pager.c index 3a529b6..6cb678a 100644 --- a/sys/vm/vm_pager.c +++ b/sys/vm/vm_pager.c @@ -318,7 +318,7 @@ vm_pager_map_page(m) vm_offset_t kva; kva = kmem_alloc_wait(pager_map, PAGE_SIZE); - pmap_qenter(kva, &m, 1); + pmap_kenter(kva, VM_PAGE_TO_PHYS(m)); return (kva); } @@ -326,7 +326,7 @@ void vm_pager_unmap_page(kva) vm_offset_t kva; { - pmap_qremove(kva, 1); + pmap_kremove(kva); kmem_free_wakeup(pager_map, kva, PAGE_SIZE); } diff --git a/sys/vm/vm_zone.c b/sys/vm/vm_zone.c index 5057b6e..a1b1d3c 100644 --- a/sys/vm/vm_zone.c +++ b/sys/vm/vm_zone.c @@ -386,7 +386,7 @@ _zget(vm_zone_t z) break; zkva = z->zkva + z->zpagecount * PAGE_SIZE; - pmap_qenter(zkva, &m, 1); + pmap_kenter(zkva, VM_PAGE_TO_PHYS(m)); bzero((caddr_t) zkva, PAGE_SIZE); z->zpagecount++; atomic_add_int(&zone_kmem_pages, 1); |