diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index 65f761eaa4a..cfccf3c3ca6 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 f7064f04a53..f4df6687021 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.