forked from Imagelibrary/rtems
2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/ppc_exc_hdl.c: make sure RI is set in the exception frame and panic if it isn't (state info might have been lost). This only affects classic PPC.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2007-12-10 Till Straumann <strauman@slac.stanford.edu>
|
||||
|
||||
* new-exceptions/bspsupport/ppc_exc_hdl.c: make sure
|
||||
RI is set in the exception frame and panic if it isn't
|
||||
(state info might have been lost). This only affects
|
||||
classic PPC.
|
||||
|
||||
2007-12-10 Till Straumann <strauman@slac.stanford.edu>
|
||||
|
||||
* new-exceptions/bspsupport/README,
|
||||
|
||||
@@ -97,6 +97,12 @@ int rval = 1;
|
||||
rval = 0;
|
||||
}
|
||||
|
||||
if ( (ppc_exc_msr_bits ^ f->EXC_SRR1) & MSR_RI ) {
|
||||
printk("unrecoverable exception (RI was clear), spinning to death.\n");
|
||||
while (1)
|
||||
;
|
||||
}
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user