Changeset bd48f4c in mainline for kernel/arch/ppc32/include/exception.h
- Timestamp:
- 2010-07-12T10:53:30Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd11d3e
- Parents:
- c40e6ef (diff), bee2d4c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/exception.h
rc40e6ef rbd48f4c 38 38 #include <typedefs.h> 39 39 #include <arch/cpu.h> 40 #include <trace.h> 40 41 41 42 typedef struct istate { … … 81 82 } istate_t; 82 83 83 static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr) 84 NO_TRACE static inline void istate_set_retaddr(istate_t *istate, 85 uintptr_t retaddr) 84 86 { 85 87 istate->pc = retaddr; … … 91 93 * 92 94 */ 93 static inline int istate_from_uspace(istate_t *istate)95 NO_TRACE static inline int istate_from_uspace(istate_t *istate) 94 96 { 95 97 return (istate->srr1 & MSR_PR) != 0; 96 98 } 97 99 98 static inline unative_t istate_get_pc(istate_t *istate)100 NO_TRACE static inline unative_t istate_get_pc(istate_t *istate) 99 101 { 100 102 return istate->pc; 101 103 } 102 104 103 static inline unative_t istate_get_fp(istate_t *istate)105 NO_TRACE static inline unative_t istate_get_fp(istate_t *istate) 104 106 { 105 107 return istate->sp;
Note:
See TracChangeset
for help on using the changeset viewer.