summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-05-24 19:29:02 +0000
committerbz <bz@FreeBSD.org>2008-05-24 19:29:02 +0000
commit91ff240d1ef2fd68744dd420b04d4d3bb5fea416 (patch)
treedef0cc78f55cd6cfbd96d0da1d94cd989e2e92ea /sys/i386
parentc7242d199fa0d46f7095b08318ccd1edff3af693 (diff)
downloadFreeBSD-src-91ff240d1ef2fd68744dd420b04d4d3bb5fea416.zip
FreeBSD-src-91ff240d1ef2fd68744dd420b04d4d3bb5fea416.tar.gz
Restore buildable state. Style ignored.
Leave IDTVEC(ill) where it was unless we compile with KDTRACE_HOOKS[1]. Hide the with DTRACE case case under #ifdef KDTRACE_HOOKS. Suggested by: attilio [1] Reviewed by: attilio
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/exception.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/i386/i386/exception.s b/sys/i386/i386/exception.s
index 9fce236..1099042 100644
--- a/sys/i386/i386/exception.s
+++ b/sys/i386/i386/exception.s
@@ -112,6 +112,10 @@ IDTVEC(ofl)
pushl $0; TRAP(T_OFLOW)
IDTVEC(bnd)
pushl $0; TRAP(T_BOUND)
+#ifndef KDTRACE_HOOKS
+IDTVEC(ill)
+ pushl $0; TRAP(T_PRIVINFLT)
+#endif
IDTVEC(dna)
pushl $0; TRAP(T_DNA)
IDTVEC(fpusegm)
@@ -170,6 +174,7 @@ calltrap:
/*
* Privileged instruction fault.
*/
+#ifdef KDTRACE_HOOKS
SUPERALIGN_TEXT
IDTVEC(ill)
/* Check if there is no DTrace hook registered. */
@@ -203,6 +208,7 @@ IDTVEC(ill)
norm_ill:
pushl $0
TRAP(T_PRIVINFLT)
+#endif
/*
* SYSCALL CALL GATE (old entry point for a.out binaries)
OpenPOWER on IntegriCloud