From f9d393e059187bf08b97c8dbd11bc23f635071b9 Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 3 Sep 2001 23:13:42 +0000 Subject: 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. --- sys/sparc64/include/trap.h | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'sys/sparc64/include/trap.h') 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 -- cgit v1.1