summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-12-12 20:08:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-12-12 20:08:09 +0000
commit4e341bcb55da707f16d5654d47e93a5a2a4d206b (patch)
tree9cd8e38bec772285fbb730fb15560677dc1d200b /sys/arch/sgi
parentc4e2c663bae6b1be656dab868f88f5d9254268c0 (diff)
Switch page size from 4KB to 16KB on R10k kernels without R5k support
(i.e. IP27 and IP30 sgi kernels).
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r--sys/arch/sgi/include/param.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/sgi/include/param.h b/sys/arch/sgi/include/param.h
index e955a483204..14b18d3affd 100644
--- a/sys/arch/sgi/include/param.h
+++ b/sys/arch/sgi/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.4 2009/12/07 19:05:59 miod Exp $ */
+/* $OpenBSD: param.h,v 1.5 2009/12/12 20:08:08 miod Exp $ */
/*
* Copyright (c) 2003 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -39,7 +39,13 @@
#define MID_MACHINE MID_MIPS64 /* None but has to be defined */
+#ifdef _KERNEL
+#if defined(CPU_R10000) && !defined(CPU_R5000) && !defined(CPU_RM7000)
+#define PAGE_SHIFT 14
+#else
#define PAGE_SHIFT 12
+#endif
+#endif /* _KERNEL */
#include <mips64/param.h>