Changeset 1f12fab in mainline for kernel/arch/sparc32/include/arch/istate.h
- Timestamp:
- 2013-10-07T20:00:34Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a73ebf0
- Parents:
- 80d9d83
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc32/include/arch/istate.h
r80d9d83 r1f12fab 27 27 */ 28 28 29 /** @addtogroup abs32leinterrupt29 /** @addtogroup sparc32interrupt 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef KERN_ abs32le_ISTATE_H_36 #define KERN_ abs32le_ISTATE_H_35 #ifndef KERN_sparc32_ISTATE_H_ 36 #define KERN_sparc32_ISTATE_H_ 37 37 38 38 #include <trace.h> … … 54 54 */ 55 55 typedef struct istate { 56 uintptr_t ip; 57 uintptr_t fp; 56 uintptr_t pstate; 57 uintptr_t pc; 58 uintptr_t npc; 58 59 uint32_t stack[]; 59 60 } istate_t; … … 64 65 /* On real hardware this checks whether the interrupted 65 66 context originated from user space. */ 66 67 return !(istate-> ip& UINT32_C(0x80000000));67 68 return !(istate->pc & UINT32_C(0x80000000)); 68 69 } 69 70 … … 74 75 /* On real hardware this sets the instruction pointer. */ 75 76 76 istate-> ip= retaddr;77 istate->pc = retaddr; 77 78 } 78 79 … … 82 83 /* On real hardware this returns the instruction pointer. */ 83 84 84 return istate-> ip;85 return istate->pc; 85 86 } 86 87 … … 90 91 /* On real hardware this returns the frame pointer. */ 91 92 92 return istate->fp;93 return 0;//istate->fp; 93 94 } 94 95
Note:
See TracChangeset
for help on using the changeset viewer.