diff options
author | Ariane van der Steldt <ariane@cvs.openbsd.org> | 2009-06-16 16:42:42 +0000 |
---|---|---|
committer | Ariane van der Steldt <ariane@cvs.openbsd.org> | 2009-06-16 16:42:42 +0000 |
commit | df471f546425532f5eb23a525aa177e7cebfc201 (patch) | |
tree | 972d5345b01631db0b5c8763b0ddbc1ff716f769 /sys/arch/i386 | |
parent | a3f40e2b55539a27c6990efc4ebff8036b9a4938 (diff) |
Backout pmemrange (which to most people is more well known as physmem
allocator).
"i can't see any obvious problems" oga
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/pmap.c | 11 | ||||
-rw-r--r-- | sys/arch/i386/i386/pmapae.c | 15 | ||||
-rw-r--r-- | sys/arch/i386/include/vmparam.h | 9 |
3 files changed, 13 insertions, 22 deletions
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c index 240970dab3b..3619ae37e96 100644 --- a/sys/arch/i386/i386/pmap.c +++ b/sys/arch/i386/i386/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.141 2009/06/16 00:11:29 oga Exp $ */ +/* $OpenBSD: pmap.c,v 1.142 2009/06/16 16:42:41 ariane Exp $ */ /* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */ /* @@ -2009,7 +2009,7 @@ pmap_do_remove(struct pmap *pmap, vaddr_t sva, vaddr_t eva, int flags) /* If PTP is no longer being used, free it. */ if (ptp && ptp->wire_count <= 1) { pmap_drop_ptp(pmap, va, ptp, ptes); - TAILQ_INSERT_TAIL(&empty_ptps, ptp, fq.queues.listq); + TAILQ_INSERT_TAIL(&empty_ptps, ptp, listq); } if (!shootall) @@ -2023,7 +2023,7 @@ pmap_do_remove(struct pmap *pmap, vaddr_t sva, vaddr_t eva, int flags) pmap_unmap_ptes(pmap); PMAP_MAP_TO_HEAD_UNLOCK(); while ((ptp = TAILQ_FIRST(&empty_ptps)) != NULL) { - TAILQ_REMOVE(&empty_ptps, ptp, fq.queues.listq); + TAILQ_REMOVE(&empty_ptps, ptp, listq); uvm_pagefree(ptp); } } @@ -2080,8 +2080,7 @@ pmap_page_remove(struct vm_page *pg) if (pve->pv_ptp && --pve->pv_ptp->wire_count <= 1) { pmap_drop_ptp(pve->pv_pmap, pve->pv_va, pve->pv_ptp, ptes); - TAILQ_INSERT_TAIL(&empty_ptps, pve->pv_ptp, - fq.queues.listq); + TAILQ_INSERT_TAIL(&empty_ptps, pve->pv_ptp, listq); } pmap_tlb_shootpage(pve->pv_pmap, pve->pv_va); @@ -2094,7 +2093,7 @@ pmap_page_remove(struct vm_page *pg) pmap_tlb_shootwait(); while ((ptp = TAILQ_FIRST(&empty_ptps)) != NULL) { - TAILQ_REMOVE(&empty_ptps, ptp, fq.queues.listq); + TAILQ_REMOVE(&empty_ptps, ptp, listq); uvm_pagefree(ptp); } } diff --git a/sys/arch/i386/i386/pmapae.c b/sys/arch/i386/i386/pmapae.c index 46fd0b40943..ed75721ad3c 100644 --- a/sys/arch/i386/i386/pmapae.c +++ b/sys/arch/i386/i386/pmapae.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmapae.c,v 1.18 2009/06/16 00:11:29 oga Exp $ */ +/* $OpenBSD: pmapae.c,v 1.19 2009/06/16 16:42:41 ariane Exp $ */ /* * Copyright (c) 2006 Michael Shalayeff @@ -1453,15 +1453,14 @@ pmap_remove_pae(struct pmap *pmap, vaddr_t sva, vaddr_t eva) ptp->wire_count = 0; /* Postpone free to after shootdown. */ uvm_pagerealloc(ptp, NULL, 0); - TAILQ_INSERT_TAIL(&empty_ptps, ptp, - fq.queues.listq); + TAILQ_INSERT_TAIL(&empty_ptps, ptp, listq); } } pmap_tlb_shootnow(cpumask); pmap_unmap_ptes_pae(pmap); /* unlock pmap */ PMAP_MAP_TO_HEAD_UNLOCK(); while ((ptp = TAILQ_FIRST(&empty_ptps)) != NULL) { - TAILQ_REMOVE(&empty_ptps, ptp, fq.queues.listq); + TAILQ_REMOVE(&empty_ptps, ptp, listq); uvm_pagefree(ptp); } return; @@ -1547,7 +1546,7 @@ pmap_remove_pae(struct pmap *pmap, vaddr_t sva, vaddr_t eva) ptp->wire_count = 0; /* Postpone free to after shootdown. */ uvm_pagerealloc(ptp, NULL, 0); - TAILQ_INSERT_TAIL(&empty_ptps, ptp, fq.queues.listq); + TAILQ_INSERT_TAIL(&empty_ptps, ptp, listq); } } @@ -1555,7 +1554,7 @@ pmap_remove_pae(struct pmap *pmap, vaddr_t sva, vaddr_t eva) pmap_unmap_ptes_pae(pmap); PMAP_MAP_TO_HEAD_UNLOCK(); while ((ptp = TAILQ_FIRST(&empty_ptps)) != NULL) { - TAILQ_REMOVE(&empty_ptps, ptp, fq.queues.listq); + TAILQ_REMOVE(&empty_ptps, ptp, listq); uvm_pagefree(ptp); } } @@ -1666,7 +1665,7 @@ pmap_page_remove_pae(struct vm_page *pg) /* Postpone free to after shootdown. */ uvm_pagerealloc(pve->pv_ptp, NULL, 0); TAILQ_INSERT_TAIL(&empty_ptps, pve->pv_ptp, - fq.queues.listq); + listq); } } pmap_unmap_ptes_pae(pve->pv_pmap); /* unlocks pmap */ @@ -1677,7 +1676,7 @@ pmap_page_remove_pae(struct vm_page *pg) PMAP_HEAD_TO_MAP_UNLOCK(); pmap_tlb_shootnow(cpumask); while ((ptp = TAILQ_FIRST(&empty_ptps)) != NULL) { - TAILQ_REMOVE(&empty_ptps, ptp, fq.queues.listq); + TAILQ_REMOVE(&empty_ptps, ptp, listq); uvm_pagefree(ptp); } } diff --git a/sys/arch/i386/include/vmparam.h b/sys/arch/i386/include/vmparam.h index 41e95b3f418..293879609de 100644 --- a/sys/arch/i386/include/vmparam.h +++ b/sys/arch/i386/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.42 2009/06/01 17:42:33 ariane Exp $ */ +/* $OpenBSD: vmparam.h,v 1.43 2009/06/16 16:42:41 ariane Exp $ */ /* $NetBSD: vmparam.h,v 1.15 1994/10/27 04:16:34 cgd Exp $ */ /*- @@ -118,13 +118,6 @@ #define VM_FREELIST_DEFAULT 0 #define VM_FREELIST_FIRST16 1 -/* reserve ISA-DMA and 32-bit DMA memory */ -#define UVM_IO_RANGES \ - { \ - { 0, 0x00ffffffUL }, \ - { 0, 0xffffffffUL }, \ - } - #define __HAVE_VM_PAGE_MD struct pv_entry; struct vm_page_md { |