Changeset d59c046 in mainline
- Timestamp:
- 2013-02-20T20:53:42Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a4e23f8c
- Parents:
- 005b765
- Location:
- kernel/arch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/istate.h
r005b765 rd59c046 66 66 } istate_t; 67 67 68 #define RPL_USER 3 69 68 70 /** Return true if exception happened while in userspace */ 69 71 NO_TRACE static inline int istate_from_uspace(istate_t *istate) 70 72 { 71 return !(istate->rip & UINT64_C(0x8000000000000000));73 return (istate->cs & RPL_USER) == RPL_USER; 72 74 } 73 75 -
kernel/arch/ia32/include/istate.h
r005b765 rd59c046 68 68 } istate_t; 69 69 70 #define RPL_USER 3 71 70 72 /** Return true if exception happened while in userspace */ 71 73 NO_TRACE static inline int istate_from_uspace(istate_t *istate) 72 74 { 73 return !(istate->eip & UINT32_C(0x80000000));75 return (istate->cs & RPL_USER) == RPL_USER; 74 76 } 75 77
Note:
See TracChangeset
for help on using the changeset viewer.