Changes in kernel/arch/ppc32/include/exception.h [7a0359b:22a28a69] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/exception.h
r7a0359b r22a28a69 38 38 #include <typedefs.h> 39 39 #include <arch/cpu.h> 40 #include <trace.h>41 40 42 41 typedef struct istate { … … 82 81 } istate_t; 83 82 84 NO_TRACE static inline void istate_set_retaddr(istate_t *istate, 85 uintptr_t retaddr) 83 static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr) 86 84 { 87 85 istate->pc = retaddr; … … 93 91 * 94 92 */ 95 NO_TRACEstatic inline int istate_from_uspace(istate_t *istate)93 static inline int istate_from_uspace(istate_t *istate) 96 94 { 97 95 return (istate->srr1 & MSR_PR) != 0; 98 96 } 99 97 100 NO_TRACEstatic inline unative_t istate_get_pc(istate_t *istate)98 static inline unative_t istate_get_pc(istate_t *istate) 101 99 { 102 100 return istate->pc; 103 101 } 104 102 105 NO_TRACEstatic inline unative_t istate_get_fp(istate_t *istate)103 static inline unative_t istate_get_fp(istate_t *istate) 106 104 { 107 105 return istate->sp;
Note:
See TracChangeset
for help on using the changeset viewer.