Ignore:
File:
1 edited

Legend:

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

    r598f90e rc0699467  
    3636#define KERN_ppc32_EXCEPTION_H_
    3737
    38 #include <typedefs.h>
    39 #include <arch/cpu.h>
    4038#include <trace.h>
     39
     40#ifdef KERNEL
     41
     42#include <arch/msr.h>
     43
     44#else /* KERNEL */
     45
     46#include <libarch/msr.h>
     47
     48#endif /* KERNEL */
    4149
    4250typedef struct istate {
     
    7381        uint32_t cr;
    7482        uint32_t pc;
    75         uint32_t srr1;
     83        uint32_t msr;
    7684        uint32_t lr;
    7785        uint32_t ctr;
     
    9098/** Return true if exception happened while in userspace
    9199 *
    92  * The contexts of MSR register was stored in SRR1.
    93  *
    94100 */
    95101NO_TRACE static inline int istate_from_uspace(istate_t *istate)
    96102{
    97         return (istate->srr1 & MSR_PR) != 0;
     103        return (istate->msr & MSR_PR) != 0;
    98104}
    99105
Note: See TracChangeset for help on using the changeset viewer.