diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-11-28 20:28:29 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-11-28 20:28:29 +0000 |
commit | c8b6a5a1833d4c4122625d7d7e17ebad9b4b9a5e (patch) | |
tree | 514dc4bcc946d42779d1738595fcb28b97c66cbd /sys/arch | |
parent | a8487c1e24b95afd8f4f2bbcf22214b227a396d2 (diff) |
Allow mips64-based ports to override the default mips64 VM_PHYSSEG_STRAT
strategy value (BSEARCH); use BIGFIRST on loongson since there are only up
to two memory segments.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/loongson/include/vmparam.h | 10 | ||||
-rw-r--r-- | sys/arch/mips64/include/vmparam.h | 10 |
2 files changed, 13 insertions, 7 deletions
diff --git a/sys/arch/loongson/include/vmparam.h b/sys/arch/loongson/include/vmparam.h index 9cc516fa0e7..0b6cb11698e 100644 --- a/sys/arch/loongson/include/vmparam.h +++ b/sys/arch/loongson/include/vmparam.h @@ -1,3 +1,11 @@ -/* $OpenBSD: vmparam.h,v 1.1 2009/12/09 19:22:50 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.2 2010/11/28 20:28:26 miod Exp $ */ /* public domain */ +#ifndef _LOONGSON_VMPARAM_H_ +#define _LOONGSON_VMPARAM_H_ + +#define VM_PHYSSEG_MAX 2 /* Max number of physical memory segments */ +#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST + #include <mips64/vmparam.h> + +#endif /* _LOONGSON_VMPARAM_H_ */ diff --git a/sys/arch/mips64/include/vmparam.h b/sys/arch/mips64/include/vmparam.h index 11a74aa4771..ff82d6769ec 100644 --- a/sys/arch/mips64/include/vmparam.h +++ b/sys/arch/mips64/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.20 2009/12/08 22:15:47 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.21 2010/11/28 20:28:28 miod Exp $ */ /* $NetBSD: vmparam.h,v 1.5 1994/10/26 21:10:10 cgd Exp $ */ /* @@ -44,11 +44,7 @@ /* * Machine dependent constants mips processors. */ -/* - * USRTEXT is the start of the user text/data space, while USRSTACK - * is the top (end) of the user stack. - */ -#define USRTEXT 0x0000000000400000L + #define USRSTACK VM_MAXUSER_ADDRESS /* Start of user stack */ /* @@ -91,7 +87,9 @@ #ifndef VM_PHYSSEG_MAX #define VM_PHYSSEG_MAX 8 /* Max number of physical memory segments */ #endif +#ifndef VM_PHYSSEG_STRAT #define VM_PHYSSEG_STRAT VM_PSTRAT_BSEARCH +#endif #define VM_PHYSSEG_NOADD /* user/kernel map constants */ |