From 01426578dc07c02e2d07e08fe94038f4920c0639 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Wed, 10 Apr 2002 19:22:45 +0000 Subject: [PATCH] Add definitions for IA-32 exceptions, interrupts and intercepts. --- sys/ia64/include/ia64_cpu.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/sys/ia64/include/ia64_cpu.h b/sys/ia64/include/ia64_cpu.h index 0d5182e21e66..b2e0bff51c99 100644 --- a/sys/ia64/include/ia64_cpu.h +++ b/sys/ia64/include/ia64_cpu.h @@ -127,6 +127,27 @@ #define IA64_VEC_IA32_INTERCEPT 46 #define IA64_VEC_IA32_INTERRUPT 47 +/* + * IA-32 exceptions. + */ +#define IA32_EXCEPTION_DIVIDE 0 +#define IA32_EXCEPTION_DEBUG 1 +#define IA32_EXCEPTION_BREAK 3 +#define IA32_EXCEPTION_OVERFLOW 4 +#define IA32_EXCEPTION_BOUND 5 +#define IA32_EXCEPTION_DNA 7 +#define IA32_EXCEPTION_NOT_PRESENT 11 +#define IA32_EXCEPTION_STACK_FAULT 12 +#define IA32_EXCEPTION_GPFAULT 13 +#define IA32_EXCEPTION_FPERROR 16 +#define IA32_EXCEPTION_ALIGNMENT_CHECK 17 +#define IA32_EXCEPTION_STREAMING_SIMD 19 + +#define IA32_INTERCEPT_INSTRUCTION 0 +#define IA32_INTERCEPT_GATE 1 +#define IA32_INTERCEPT_SYSTEM_FLAG 2 +#define IA32_INTERCEPT_LOCK 4 + /* * Manipulating region bits of an address. */