Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/include/istate.h

    r26aafe8 r598f90e  
    7373        uint32_t cr;
    7474        uint32_t pc;
    75         uint32_t msr;
     75        uint32_t srr1;
    7676        uint32_t lr;
    7777        uint32_t ctr;
     
    9090/** Return true if exception happened while in userspace
    9191 *
     92 * The contexts of MSR register was stored in SRR1.
     93 *
    9294 */
    9395NO_TRACE static inline int istate_from_uspace(istate_t *istate)
    9496{
    95         return (istate->msr & MSR_PR) != 0;
     97        return (istate->srr1 & MSR_PR) != 0;
    9698}
    9799
Note: See TracChangeset for help on using the changeset viewer.