p4-projects@freebsd.org
[Top] [All Lists]

PERFORCE change 133714 for review

Subject: PERFORCE change 133714 for review
From: Kip Macy
Date: Sun, 20 Jan 2008 07:23:35 GMT
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);
 }
 
_______________________________________________
p4-projects@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "p4-projects-unsubscribe@xxxxxxxxxxx"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 133714 for review, Kip Macy <=