summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2001-09-30 18:51:18 +0000
committerjake <jake@FreeBSD.org>2001-09-30 18:51:18 +0000
commit539ccfaeb2e7bc2528068dc5493a4e7b30a9908e (patch)
treeb5397842daafa717dbde31fe067de0b31267b694 /sys
parent0faa0047f499fc2e08f43816ca6a239940a9498f (diff)
downloadFreeBSD-src-539ccfaeb2e7bc2528068dc5493a4e7b30a9908e.zip
FreeBSD-src-539ccfaeb2e7bc2528068dc5493a4e7b30a9908e.tar.gz
Wrap hardware trap types in ifdef _kernel.
Diffstat (limited to 'sys')
-rw-r--r--sys/sparc64/include/trap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sparc64/include/trap.h b/sys/sparc64/include/trap.h
index 8cd7094..26651bc 100644
--- a/sys/sparc64/include/trap.h
+++ b/sys/sparc64/include/trap.h
@@ -29,6 +29,8 @@
#ifndef _MACHINE_TRAP_H_
#define _MACHINE_TRAP_H_
+#ifdef _KERNEL
+
#define T_RESERVED 0x0
#define T_POWER_ON 0x1
#define T_WATCHDOG 0x2
@@ -70,6 +72,8 @@
extern const char *trap_msg[];
#endif
+#endif
+
#define ST_BREAKPOINT 0x1
#define ST_SYSCALL 0x9
OpenPOWER on IntegriCloud