Changeset 693f614 in mainline
- Timestamp:
- 2008-09-14T11:18:07Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b968f39
- Parents:
- ac02aaa
- Location:
- kernel/arch/ppc32/include
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/asm/regname.h
rac02aaa r693f614 215 215 216 216 /* MSR bits */ 217 #define msr_ ir (1 << 4)218 #define msr_ dr (1 << 5)217 #define msr_dr (1 << 4) 218 #define msr_ir (1 << 5) 219 219 #define msr_pr (1 << 14) 220 220 #define msr_ee (1 << 15) -
kernel/arch/ppc32/include/exception.h
rac02aaa r693f614 37 37 38 38 #include <arch/types.h> 39 #include <arch/regutils.h> 39 40 40 41 typedef struct { … … 85 86 86 87 /** Return true if exception happened while in userspace */ 87 #include <panic.h>88 88 static inline int istate_from_uspace(istate_t *istate) 89 89 { 90 panic("istate_from_uspace not yet implemented");91 return 0;90 /* true if privilege level PR (copied from MSR) == 1 */ 91 return (istate->srr1 & MSR_PR) != 0; 92 92 } 93 93
Note:
See TracChangeset
for help on using the changeset viewer.