summaryrefslogtreecommitdiff
path: root/sys/arch/armish
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2011-05-30 22:25:25 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2011-05-30 22:25:25 +0000
commit4ed4f8dde5fa32c869d6204b0110b4b40f3e5a2e (patch)
tree64c44ccc81ef23bb074f8cb14168a349bf4cfd8c /sys/arch/armish
parent973b968f1e5f9aebd5ffdbba3ea1a2c40be6e98e (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/armish')
-rw-r--r--sys/arch/armish/armish/armish_machdep.c5
-rw-r--r--sys/arch/armish/include/vmparam.h6
2 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/armish/armish/armish_machdep.c b/sys/arch/armish/armish/armish_machdep.c
index 2477ebea346..e2dbb432294 100644
--- a/sys/arch/armish/armish/armish_machdep.c
+++ b/sys/arch/armish/armish/armish_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: armish_machdep.c,v 1.16 2010/06/27 08:05:59 drahn Exp $ */
+/* $OpenBSD: armish_machdep.c,v 1.17 2011/05/30 22:25:20 oga Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
@@ -750,8 +750,7 @@ initarm(void *arg)
#endif
uvm_setpagesize(); /* initialize PAGE_SIZE-dependent variables */
uvm_page_physload(atop(physical_freestart), atop(physical_freeend),
- atop(physical_freestart), atop(physical_freeend),
- VM_FREELIST_DEFAULT);
+ atop(physical_freestart), atop(physical_freeend), 0);
/* Boot strap pmap telling it where the kernel page table is */
#ifdef VERBOSE_INIT_ARM
diff --git a/sys/arch/armish/include/vmparam.h b/sys/arch/armish/include/vmparam.h
index beea6057023..4f59e6898a7 100644
--- a/sys/arch/armish/include/vmparam.h
+++ b/sys/arch/armish/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.6 2011/03/23 16:54:34 pirofti Exp $ */
+/* $OpenBSD: vmparam.h,v 1.7 2011/05/30 22:25:20 oga Exp $ */
/* $NetBSD: vmparam.h,v 1.23 2003/05/22 05:47:07 thorpej Exp $ */
/*
@@ -93,8 +93,4 @@
*/
#endif /* _KERNEL */
-#define VM_NFREELIST 2
-#define VM_FREELIST_DEFAULT 0
-
-
#endif /* _MACHINE_VMPARAM_H_ */