summaryrefslogtreecommitdiff
path: root/sys/arch/mips64/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-06-18 20:25:56 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-06-18 20:25:56 +0000
commitf0b7317625d2cde975b8675a357c9d963d776d54 (patch)
treee5124ffa9df11463a2c712b8b262e5ef1141ce15 /sys/arch/mips64/include
parent3353991148f65e2444aeb369599434bf7529f775 (diff)
Use a shorter form to load XKPHYS constants in .S code, shaves a few text
bytes, no functional change.
Diffstat (limited to 'sys/arch/mips64/include')
-rw-r--r--sys/arch/mips64/include/cpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h
index 99b41598cd0..4b4b42c046a 100644
--- a/sys/arch/mips64/include/cpu.h
+++ b/sys/arch/mips64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.18 2007/05/07 18:42:12 kettenis Exp $ */
+/* $OpenBSD: cpu.h,v 1.19 2007/06/18 20:25:53 miod Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -70,8 +70,10 @@
* Cache Coherency Attributes
* We only list values common to r4k and r5k.
*/
+#if !defined(_LOCORE)
#define CCA_NC 2UL /* uncached, write-around */
#define CCA_NONCOHERENT 3UL /* cached, non-coherent, write-back */
+#endif
#ifdef __LP64__
#define XKPHYS_BASE 0x8000000000000000UL