summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include/trap.h
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-06-28 01:16:30 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-06-28 01:16:30 +0000
commita18521801dd7c3d24c9e079dd3a85a372bd786fe (patch)
tree706ed148d060442190a546795cd2f386631d08d0 /sys/arch/amd64/include/trap.h
parentc8f5fb546e9d2dbb857809a2be3e79f9b9db2c84 (diff)
Split AST handling from trap() into ast() and get rid of T_ASTFLT.
Don't skip the AST check when returning from *fork() in the child. Make sure to count interrupts even when they're deferred or stray. testing by krw@, and then many via snapshots
Diffstat (limited to 'sys/arch/amd64/include/trap.h')
-rw-r--r--sys/arch/amd64/include/trap.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/amd64/include/trap.h b/sys/arch/amd64/include/trap.h
index 32d30d5409f..067f8242dbf 100644
--- a/sys/arch/amd64/include/trap.h
+++ b/sys/arch/amd64/include/trap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.h,v 1.2 2005/12/13 00:18:19 jsg Exp $ */
+/* $OpenBSD: trap.h,v 1.3 2015/06/28 01:16:29 guenther Exp $ */
/* $NetBSD: trap.h,v 1.4 1994/10/27 04:16:30 cgd Exp $ */
/*-
@@ -43,7 +43,7 @@
#define T_PRIVINFLT 0 /* privileged instruction */
#define T_BPTFLT 1 /* breakpoint trap */
#define T_ARITHTRAP 2 /* arithmetic trap */
-#define T_ASTFLT 3 /* asynchronous system trap */
+#define T_RESERVED 3 /* reserved fault base */
#define T_PROTFLT 4 /* protection fault */
#define T_TRCTRAP 5 /* trace trap */
#define T_PAGEFLT 6 /* page fault */
@@ -60,7 +60,6 @@
#define T_STKFLT 17 /* stack fault */
#define T_MCA 18 /* machine check ([P]Pro) */
#define T_XMM 19 /* SSE FP exception */
-#define T_RESERVED 20 /* reserved fault base */
/* Trap's coming from user mode */
#define T_USER 0x100