Changes in kernel/arch/ppc32/include/exception.h [22a28a69:7a0359b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/exception.h
r22a28a69 r7a0359b 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.