diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-05-30 22:25:25 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2011-05-30 22:25:25 +0000 |
commit | 4ed4f8dde5fa32c869d6204b0110b4b40f3e5a2e (patch) | |
tree | 64c44ccc81ef23bb074f8cb14168a349bf4cfd8c /sys/arch/solbourne | |
parent | 973b968f1e5f9aebd5ffdbba3ea1a2c40be6e98e (diff) |
Remove the freelist member from vm_physseg
The new world order of pmemrange makes this data completely redundant
(being dealt with by the pmemrange constraints instead). Remove all code
that messes with the freelist.
While touching every caller of uvm_page_physload() anyway, add the flags
argument to all callers (all but one is 0 and that one already used
PHYSLOAD_DEVICE) and remove the macro magic to allow callers to continue
without it.
Should shrink the code a bit, as well.
matthew@ pointed out some mistakes i'd made.
``freelist death, I like. Ok.' ariane@
`I agree with the general direction, go ahead and i'll fix any fallout
shortly'' miod@ (68k 88k and vax i could not check would build)
Diffstat (limited to 'sys/arch/solbourne')
-rw-r--r-- | sys/arch/solbourne/solbourne/pmap.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/arch/solbourne/solbourne/pmap.c b/sys/arch/solbourne/solbourne/pmap.c index 3700f9f55a7..cc1a189c2e2 100644 --- a/sys/arch/solbourne/solbourne/pmap.c +++ b/sys/arch/solbourne/solbourne/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.4 2010/12/06 20:57:18 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.5 2011/05/30 22:25:22 oga Exp $ */ /* * Copyright (c) 2005, Miodrag Vallat * @@ -455,17 +455,14 @@ pmap_bootstrap(size_t promdata) #endif uvm_page_physload( atop(PTW1_TO_PHYS(ekern)), prompa, - atop(PTW1_TO_PHYS(ekern)), prompa, - VM_FREELIST_DEFAULT); + atop(PTW1_TO_PHYS(ekern)), prompa, 0); uvm_page_physload( prompa + promlen, atop(PHYSMEM_BASE) + physmem, - prompa + promlen, atop(PHYSMEM_BASE) + physmem, - VM_FREELIST_DEFAULT); + prompa + promlen, atop(PHYSMEM_BASE) + physmem, 0); } else { uvm_page_physload( atop(PTW1_TO_PHYS(ekern)), atop(PHYSMEM_BASE) + physmem, - atop(PTW1_TO_PHYS(ekern)), atop(PHYSMEM_BASE) + physmem, - VM_FREELIST_DEFAULT); + atop(PTW1_TO_PHYS(ekern)), atop(PHYSMEM_BASE) + physmem, 0); } } |