PERFORCE change 133714 for review

Kip Macy kmacy at FreeBSD.org
Sat Jan 19 23:23:36 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=133714

Change 133714 by kmacy at 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);
 }
 


More information about the p4-projects mailing list