Changeset 996df189 in mainline for kernel/arch/mips32/include/arch/istate.h
- Timestamp:
- 2014-08-28T18:16:13Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ec07933
- Parents:
- 6c1c1f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/arch/istate.h
r6c1c1f7 r996df189 41 41 42 42 #include <arch/cp0.h> 43 #include <arch/istate_struct.h> 43 44 44 45 #else /* KERNEL */ 45 46 46 47 #include <libarch/cp0.h> 48 #include <libarch/istate_struct.h> 47 49 48 50 #endif /* KERNEL */ 49 50 typedef struct istate {51 /*52 * The first seven registers are arranged so that the istate structure53 * can be used both for exception handlers and for the syscall handler.54 */55 uint32_t a0; /* arg1 */56 uint32_t a1; /* arg2 */57 uint32_t a2; /* arg3 */58 uint32_t a3; /* arg4 */59 uint32_t t0; /* arg5 */60 uint32_t t1; /* arg6 */61 uint32_t v0; /* arg7 */62 uint32_t v1;63 uint32_t at;64 uint32_t t2;65 uint32_t t3;66 uint32_t t4;67 uint32_t t5;68 uint32_t t6;69 uint32_t t7;70 uint32_t s0;71 uint32_t s1;72 uint32_t s2;73 uint32_t s3;74 uint32_t s4;75 uint32_t s5;76 uint32_t s6;77 uint32_t s7;78 uint32_t t8;79 uint32_t t9;80 uint32_t kt0;81 uint32_t kt1; /* We use it as thread-local pointer */82 uint32_t gp;83 uint32_t sp;84 uint32_t s8;85 uint32_t ra;86 87 uint32_t lo;88 uint32_t hi;89 90 uint32_t status; /* cp0_status */91 uint32_t epc; /* cp0_epc */92 93 uint32_t alignment; /* to make sizeof(istate_t) a multiple of 8 */94 } istate_t;95 51 96 52 NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
Note:
See TracChangeset
for help on using the changeset viewer.