Date: Sat, 5 Apr 2003 19:05:00 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 28285 for review Message-ID: <200304060305.h36350b7060316@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28285 Change 28285 by peter@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304060305.h36350b7060316>