Changeset 693f614 in mainline for kernel/arch/ppc32/include/exception.h
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.