summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/trap.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2001-09-03 23:13:42 +0000
committerjake <jake@FreeBSD.org>2001-09-03 23:13:42 +0000
commitf9d393e059187bf08b97c8dbd11bc23f635071b9 (patch)
tree602196aecb79910dac578f7f211ed7da10b9c585 /sys/sparc64/include/trap.h
parente317d982f675f7bcb33d138194a69206e7c9ac14 (diff)
downloadFreeBSD-src-f9d393e059187bf08b97c8dbd11bc23f635071b9.zip
FreeBSD-src-f9d393e059187bf08b97c8dbd11bc23f635071b9.tar.gz
Change tf_arg to uintptr_t from void * to reflect the fact that
non-pointer values may be passed in it. Add appropriate casts. The interrupt type is now passed in tf_arg instead tf_type.
Diffstat (limited to 'sys/sparc64/include/trap.h')
-rw-r--r--sys/sparc64/include/trap.h19
1 files changed, 4 insertions, 15 deletions
diff --git a/sys/sparc64/include/trap.h b/sys/sparc64/include/trap.h
index 92f6385..8cd7094 100644
--- a/sys/sparc64/include/trap.h
+++ b/sys/sparc64/include/trap.h
@@ -57,26 +57,15 @@
#define T_IMMU_MISS 0x19
#define T_DMMU_MISS 0x1a
#define T_DMMU_PROT 0x1b
-#define T_CLOCK 0x1c
-#define T_SPILL 0x1d
-#define T_FILL 0x1e
+#define T_SPILL 0x1c
+#define T_FILL 0x1d
+#define T_FILL_RET 0x1e
#define T_BREAKPOINT 0x1f
#define T_SYSCALL 0x20
#define T_RESTOREWP 0x21
+#define T_SOFT 0x22
#define T_KERNEL 0x40
-#define T_TYPE_SHIFT 0
-#define T_TYPE_SIZE 7
-#define T_TYPE_MASK (((1 << T_TYPE_SIZE) - 1) << T_TYPE_SHIFT)
-#define T_TYPE(type) \
- (((type) & T_TYPE_MASK) >> T_TYPE_SHIFT)
-
-#define T_LEVEL_SHIFT T_TYPE_SIZE
-#define T_LEVEL_SIZE 4
-#define T_LEVEL_MASK (((1 << T_LEVEL_SIZE) - 1) << T_LEVEL_SHIFT)
-#define T_LEVEL(type) \
- (((type) & T_LEVEL_MASK) >> T_LEVEL_SHIFT)
-
#ifndef LOCORE
extern const char *trap_msg[];
#endif
OpenPOWER on IntegriCloud