Changes in kernel/arch/ppc32/include/exception.h [d99c1d2:ffe276f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/exception.h
rd99c1d2 rffe276f 27 27 */ 28 28 29 /** @addtogroup ppc32 29 /** @addtogroup ppc32 30 30 * @{ 31 31 */ … … 37 37 38 38 #include <typedefs.h> 39 #include <arch/ regutils.h>39 #include <arch/cpu.h> 40 40 41 41 typedef struct istate { … … 86 86 } 87 87 88 /** Return true if exception happened while in userspace */ 88 /** Return true if exception happened while in userspace 89 * 90 * The contexts of MSR register was stored in SRR1. 91 * 92 */ 89 93 static inline int istate_from_uspace(istate_t *istate) 90 94 { 91 /* true if privilege level PR (copied from MSR) == 1 */92 95 return (istate->srr1 & MSR_PR) != 0; 93 96 }
Note:
See TracChangeset
for help on using the changeset viewer.