aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/include/cpu.h
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2013-07-28 18:44:17 +0000
committerAndriy Gapon <avg@FreeBSD.org>2013-07-28 18:44:17 +0000
commita29cc9a34bac9ea5146592493272585bdf8333e0 (patch)
tree4420aa26daa238558c6bb6511af95c82d7427921 /sys/mips/include/cpu.h
parentc722ec3a5151fdba885b451d2a50a58f327ff994 (diff)
Notes
Diffstat (limited to 'sys/mips/include/cpu.h')
-rw-r--r--sys/mips/include/cpu.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/mips/include/cpu.h b/sys/mips/include/cpu.h
index ff5117a9dbf0..2691cf2c88e2 100644
--- a/sys/mips/include/cpu.h
+++ b/sys/mips/include/cpu.h
@@ -49,8 +49,6 @@
#include <machine/endian.h>
-#if defined(_KERNEL)
-
/* BEGIN: these are going away */
#define soft_int_mask(softintr) (1 << ((softintr) + 8))
@@ -76,7 +74,9 @@
* A machine-independent interface to the CPU's counter.
*/
#define get_cyclecount() mips_rd_count()
+#endif /* !_LOCORE */
+#if defined(_KERNEL) && !defined(_LOCORE)
extern char btext[];
extern char etext[];
@@ -85,6 +85,5 @@ void swi_vm(void *);
void cpu_halt(void);
void cpu_reset(void);
-#endif /* !_LOCORE */
#endif /* _KERNEL */
#endif /* !_MACHINE_CPU_H_ */