summaryrefslogtreecommitdiffstats
path: root/sys/mips/include/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/include/cpu.h')
-rw-r--r--sys/mips/include/cpu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/mips/include/cpu.h b/sys/mips/include/cpu.h
index 2691cf2..ff5117a 100644
--- a/sys/mips/include/cpu.h
+++ b/sys/mips/include/cpu.h
@@ -49,6 +49,8 @@
#include <machine/endian.h>
+#if defined(_KERNEL)
+
/* BEGIN: these are going away */
#define soft_int_mask(softintr) (1 << ((softintr) + 8))
@@ -74,9 +76,7 @@
* 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,5 +85,6 @@ void swi_vm(void *);
void cpu_halt(void);
void cpu_reset(void);
+#endif /* !_LOCORE */
#endif /* _KERNEL */
#endif /* !_MACHINE_CPU_H_ */
OpenPOWER on IntegriCloud