diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-06 17:42:29 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-06 17:42:29 +0000 |
commit | 5057eb98e45b6cdbdc5c630c5e955913c5a9831f (patch) | |
tree | 675e14ced80260c35299c5ce6f4246437a153abd /sys/arch | |
parent | b7f0318bf675bca2a2440551a586c391ec612281 (diff) |
Define R5k/R10k extra trap codes.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mips64/include/trap.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/arch/mips64/include/trap.h b/sys/arch/mips64/include/trap.h index dc8260db4a4..e190be4415f 100644 --- a/sys/arch/mips64/include/trap.h +++ b/sys/arch/mips64/include/trap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.h,v 1.6 2005/08/07 07:29:44 miod Exp $ */ +/* $OpenBSD: trap.h,v 1.7 2006/06/06 17:42:28 miod Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -41,8 +41,8 @@ #define _MIPS_TRAP_H_ /* - * Trap codes also known in trap.c for name strings. - * Used for indexing so modify with care. + * Trap codes (ExcCode in the cause register); also known in trap.c for + * name strings. */ #define T_INT 0 /* Interrupt pending */ @@ -59,11 +59,15 @@ #define T_COP_UNUSABLE 11 /* Coprocessor unusable */ #define T_OVFLOW 12 /* Arithmetic overflow */ #define T_TRAP 13 /* Trap instruction */ -#define T_VCEI 14 /* Virtual coherency instruction */ +#define T_VCEI 14 /* R4k Virtual coherency instruction */ #define T_FPE 15 /* Floating point exception */ -#define T_IWATCH 16 /* Inst. Watch address reference */ +#define T_IWATCH 16 /* R4k Inst. Watch address reference */ +#define T_C2E 18 /* R5k Coprocessor 2 exception */ +#define T_MDMX 22 /* R5k MDMX unusable */ #define T_DWATCH 23 /* Data Watch address reference */ -#define T_VCED 31 /* Virtual coherency data */ +#define T_MCHECK 24 /* Machine check */ +#define T_CACHEERR 30 /* Cache error */ +#define T_VCED 31 /* R4k Virtual coherency data */ #define T_USER 0x20 /* user-mode flag or'ed with type */ |