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