linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Maple: killing a  process that causes a machine check exception
@ 2006-05-23 14:59 jfaslist
  2006-05-23 15:15 ` Anton Blanchard
  0 siblings, 1 reply; 6+ messages in thread
From: jfaslist @ 2006-05-23 14:59 UTC (permalink / raw)
  To: linuxppc64-dev

Hi,
By  applying the following mods (plse see below), i was able to have a 
user process that caused a machine check exception to be terminated (on 
a Maple platform), as expected. I was wondering why the PPC64 had a 
different ME handling than PPC which does send the SIGBUS to the process?
Thanks
Regards,
-jean-francois simon


diff -urN -X linux-2.6.16.14/Documentation/dontdiff 
linux-2.6.16.14/arch/powerpc/kernel/traps.c 
linux-2.6.16.14.vmeberr_fix/arch/powerpc/kernel/traps.c
--- linux-2.6.16.14/arch/powerpc/kernel/traps.c 2006-05-04 
17:03:45.000000000 -0700
+++ linux-2.6.16.14.vmeberr_fix/arch/powerpc/kernel/traps.c 2006-05-09 
02:46:59.000000000 -0700
@@ -340,12 +340,19 @@
 #ifdef CONFIG_PPC64
        int recover = 0;

+
        /* See if any machine dependent calls */
        if (ppc_md.machine_check_exception)
              recover = ppc_md.machine_check_exception(regs);

        if (recover)
              return;
+
+       if (user_mode(regs)) {
+             regs->msr |= MSR_RI;
+             _exception(SIGBUS, regs, BUS_ADRERR, regs->nip);
+             return;
+       }
 #else
        unsigned long reason = get_mc_reason(regs);


	

	
		
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-05-23 16:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-23 14:59 Maple: killing a process that causes a machine check exception jfaslist
2006-05-23 15:15 ` Anton Blanchard
2006-05-23 16:09   ` jfaslist
2006-05-23 16:23     ` Anton Blanchard
2006-05-23 16:30       ` jfaslist
2006-05-23 16:48       ` Linas Vepstas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).