Date: Sun, 20 Jan 2008 07:23:35 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 133714 for review Message-ID: <200801200723.m0K7NZAp074914@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133714 Change 133714 by kmacy@pandemonium:kmacy:xen31 on 2008/01/20 07:23:28 add some more debug info for when we send a SIGBUS Affected files ... .. //depot/projects/xen31/sys/i386/i386/trap.c#7 edit Differences ... ==== //depot/projects/xen31/sys/i386/i386/trap.c#7 (text+ko) ==== @@ -746,7 +746,7 @@ struct vmspace *vm = NULL; vm_map_t map; int rv = 0; - vm_prot_t ftype; + vm_prot_t ftype = 0; struct thread *td = curthread; struct proc *p = td->td_proc; @@ -832,7 +832,11 @@ trap_fatal(frame, eva); return (-1); } - +#ifdef XEN + if (rv == KERN_PROTECTION_FAILURE) + printf("SIGBUS: p=%s va=0x%x ftype=0x%x\n", p->p_comm, va, ftype); +#endif + return((rv == KERN_PROTECTION_FAILURE) ? SIGBUS : SIGSEGV); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801200723.m0K7NZAp074914>