Changeset ffe276f in mainline for kernel/arch/ppc32/include/exception.h
- Timestamp:
- 2010-05-22T22:56:00Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c555155
- Parents:
- 86a3f89b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/exception.h
r86a3f89b 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.