summaryrefslogtreecommitdiff
path: root/sys/arch/mips64/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-11-02 20:13:46 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-11-02 20:13:46 +0000
commit14baf96a99b2bae8c9ce1eeab22b3af1dac12188 (patch)
tree39392b0345fffbb12cc49acaf0d113fc6e77c993 /sys/arch/mips64/include
parentc741881d3afbf9b35cd4950be3d73d74565f7343 (diff)
Only define KERNBASE if defined(_KERNEL), for nothing in userland needs it,
and only if not already defined. Allows for KERNBASE to be defined elsewhere.
Diffstat (limited to 'sys/arch/mips64/include')
-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 d15cd70a1b9..d57eb466e03 100644
--- a/sys/arch/mips64/include/param.h
+++ b/sys/arch/mips64/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.33 2013/03/26 05:04:10 deraadt Exp $ */
+/* $OpenBSD: param.h,v 1.34 2015/11/02 20:13:45 miod Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -44,10 +44,12 @@
#define PAGE_SIZE (1 << PAGE_SHIFT)
#define PAGE_MASK (PAGE_SIZE - 1)
-#define KERNBASE 0xffffffff80000000L /* start of kernel virtual */
-
#ifdef _KERNEL
+#ifndef KERNBASE
+#define KERNBASE 0xffffffff80000000L /* start of kernel virtual */
+#endif
+
#define NBPG PAGE_SIZE
#define PGSHIFT PAGE_SHIFT
#define PGOFSET PAGE_MASK