Changes in kernel/arch/ppc32/include/istate.h [598f90e:c0699467] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/istate.h
r598f90e rc0699467 36 36 #define KERN_ppc32_EXCEPTION_H_ 37 37 38 #include <typedefs.h>39 #include <arch/cpu.h>40 38 #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 */ 41 49 42 50 typedef struct istate { … … 73 81 uint32_t cr; 74 82 uint32_t pc; 75 uint32_t srr1;83 uint32_t msr; 76 84 uint32_t lr; 77 85 uint32_t ctr; … … 90 98 /** Return true if exception happened while in userspace 91 99 * 92 * The contexts of MSR register was stored in SRR1.93 *94 100 */ 95 101 NO_TRACE static inline int istate_from_uspace(istate_t *istate) 96 102 { 97 return (istate-> srr1& MSR_PR) != 0;103 return (istate->msr & MSR_PR) != 0; 98 104 } 99 105
Note:
See TracChangeset
for help on using the changeset viewer.