summaryrefslogtreecommitdiff
path: root/sys/arch/palm
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/palm
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/palm')
-rw-r--r--sys/arch/palm/include/vmparam.h6
-rw-r--r--sys/arch/palm/palm/palm_machdep.c5
2 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/palm/include/vmparam.h b/sys/arch/palm/include/vmparam.h
index 49c1a1c0828..a328ae2fc45 100644
--- a/sys/arch/palm/include/vmparam.h
+++ b/sys/arch/palm/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.2 2011/03/23 16:54:36 pirofti Exp $ */
+/* $OpenBSD: vmparam.h,v 1.3 2011/05/30 22:25:22 oga Exp $ */
/* $NetBSD: vmparam.h,v 1.23 2003/05/22 05:47:07 thorpej Exp $ */
/*
@@ -79,8 +79,4 @@
#endif /* _KERNEL */
-#define VM_NFREELIST 1
-#define VM_FREELIST_DEFAULT 0
-
-
#endif /* _MACHINE_VMPARAM_H_ */
diff --git a/sys/arch/palm/palm/palm_machdep.c b/sys/arch/palm/palm/palm_machdep.c
index b776c805f5a..931808a7e8d 100644
--- a/sys/arch/palm/palm/palm_machdep.c
+++ b/sys/arch/palm/palm/palm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: palm_machdep.c,v 1.5 2010/06/27 08:05:59 drahn Exp $ */
+/* $OpenBSD: palm_machdep.c,v 1.6 2011/05/30 22:25:22 oga Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
@@ -1051,8 +1051,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