summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2009-10-29 16:24:39 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2009-10-29 16:24:39 +0000
commitc2204c03c87c3626beebb1e17df22a17945ed3fc (patch)
treef23c12a7ea2af57ca7164d1a3841fe9efe6d0c9f
parenta2ad88175b9238fccb5096f37de4052c2f2dadf8 (diff)
Notes
-rw-r--r--sys/amd64/amd64/trap.c5
-rw-r--r--sys/i386/i386/trap.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 65f761eaa4a6..cfccf3c3ca62 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -253,6 +253,11 @@ trap(struct trapframe *frame)
}
#endif
+ if (type == T_RESERVED) {
+ trap_fatal(frame, 0);
+ goto out;
+ }
+
#ifdef HWPMC_HOOKS
/*
* CPU PMCs interrupt using an NMI. If the PMC module is
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c
index f7064f04a537..f4df66870217 100644
--- a/sys/i386/i386/trap.c
+++ b/sys/i386/i386/trap.c
@@ -225,6 +225,11 @@ trap(struct trapframe *frame)
}
#endif
+ if (type == T_RESERVED) {
+ trap_fatal(frame, 0);
+ goto out;
+ }
+
#ifdef HWPMC_HOOKS
/*
* CPU PMCs interrupt using an NMI so we check for that first.