summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus
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/zaurus
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/zaurus')
-rw-r--r--sys/arch/zaurus/include/vmparam.h6
-rw-r--r--sys/arch/zaurus/zaurus/zaurus_machdep.c5
2 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/zaurus/include/vmparam.h b/sys/arch/zaurus/include/vmparam.h
index 137c992070c..57b4974bdbb 100644
--- a/sys/arch/zaurus/include/vmparam.h
+++ b/sys/arch/zaurus/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.5 2011/03/23 16:54:37 pirofti Exp $ */
+/* $OpenBSD: vmparam.h,v 1.6 2011/05/30 22:25:23 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/zaurus/zaurus/zaurus_machdep.c b/sys/arch/zaurus/zaurus/zaurus_machdep.c
index 3c4109e1612..93d9ef743a4 100644
--- a/sys/arch/zaurus/zaurus/zaurus_machdep.c
+++ b/sys/arch/zaurus/zaurus/zaurus_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_machdep.c,v 1.36 2010/10/02 23:31:34 deraadt Exp $ */
+/* $OpenBSD: zaurus_machdep.c,v 1.37 2011/05/30 22:25:23 oga Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
@@ -1090,8 +1090,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