summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-12-12 20:10:23 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-12-12 20:10:23 +0000
commit77324318a62b13e426f4c36439bc6a50e1cab0e3 (patch)
tree5431d84103ad71656c7f6c84e3738a7f8d19fc6b /sys/arch/mips64
parent4e341bcb55da707f16d5654d47e93a5a2a4d206b (diff)
Protect more definitions userland doesn't need to care about with _KERNEL
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/include/param.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/mips64/include/param.h b/sys/arch/mips64/include/param.h
index 6851456be49..8cb792f08af 100644
--- a/sys/arch/mips64/include/param.h
+++ b/sys/arch/mips64/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.24 2009/12/12 20:08:07 miod Exp $ */
+/* $OpenBSD: param.h,v 1.25 2009/12/12 20:10:22 miod Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -68,18 +68,21 @@
#define MAXPHYS (64 * 1024) /* max raw I/O transfer size */
#define USPACE (16384)
+#ifdef _KERNEL
#define UPAGES (USPACE >> PAGE_SHIFT)
#if PAGE_SHIFT > 12
#define USPACE_ALIGN 0
#else
#define USPACE_ALIGN (2 * PAGE_SIZE) /* align to an even TLB boundary */
#endif
+#endif /* _KERNEL */
/*
* Constants related to network buffer management.
*/
#define NMBCLUSTERS 4096 /* map size, max cluster allocation */
+#ifdef _KERNEL
#if PAGE_SHIFT > 12
#define MSGBUFSIZE PAGE_SIZE
#else
@@ -98,12 +101,11 @@
#define btodb(x) ((x) >> DEV_BSHIFT)
#define dbtob(x) ((x) << DEV_BSHIFT)
-#ifdef _KERNEL
#ifndef _LOCORE
#define DELAY(n) delay(n)
void delay(int);
#endif
-#endif /* !_KERNEL */
+#endif /* _KERNEL */
#endif /* !_MIPS_PARAM_H_ */