PERFORCE change 28285 for review
Peter Wemm
peter at FreeBSD.org
Sat Apr 5 19:05:02 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=28285
Change 28285 by peter at peter_overcee on 2003/04/05 19:04:49
add sysctl knob for turning the usertrap print on/off
Affected files ...
.. //depot/projects/ia64/sys/ia64/ia64/trap.c#46 edit
Differences ...
==== //depot/projects/ia64/sys/ia64/ia64/trap.c#46 (text+ko) ====
@@ -46,6 +46,7 @@
#include <sys/sysent.h>
#include <sys/syscall.h>
#include <sys/pioctl.h>
+#include <sys/sysctl.h>
#include <vm/vm.h>
#include <vm/vm_kern.h>
#include <vm/vm_page.h>
@@ -71,6 +72,10 @@
#include <ddb/ddb.h>
#endif
+static int print_usertrap = 0;
+SYSCTL_INT(_machdep, CPU_UNALIGNED_PRINT, print_usertrap,
+ CTLFLAG_RW, &print_usertrap, 0, "");
+
extern int unaligned_fixup(struct trapframe *framep, struct thread *td);
static void ia32_syscall(struct trapframe *framep);
@@ -737,9 +742,8 @@
goto dopanic;
}
-#if 1
- printtrap(vector, imm, framep, 1, user);
-#endif
+ if (print_usertrap)
+ printtrap(vector, imm, framep, 1, user);
trapsignal(td, i, ucode);
out:
if (user) {
More information about the p4-projects
mailing list