staticint pasemi_system_reset_exception(struct pt_regs *regs)
{ /* If we were woken up from power savings, we need to return * to the calling function, since nip is not saved across * all modes.
*/
if (regs->msr & SRR1_WAKEMASK)
regs_set_return_ip(regs, regs->link);
switch (regs->msr & SRR1_WAKEMASK) { case SRR1_WAKEDEC:
set_dec(1); break; case SRR1_WAKEEE: /* * Handle these when interrupts get re-enabled and we take * them as regular exceptions. We are in an NMI context * and can't handle these here.
*/ break; default: /* do system reset */ return 0;
}
/* Set higher astate since we come out of power savings at 0 */
restore_astate(hard_smp_processor_id());
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.