Changeset 33add3a8 in mainline for kernel/arch/mips32/include/arch/context.h
- Timestamp:
- 2014-09-03T21:37:33Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d5955a5
- Parents:
- 4b334fd6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/arch/context.h
r4b334fd6 r33add3a8 38 38 #include <align.h> 39 39 #include <arch/stack.h> 40 #include <arch/context_struct.h> 41 #include <typedefs.h> 40 42 41 43 /* … … 44 46 #define SP_DELTA (ABI_STACK_FRAME + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)) 45 47 46 #ifndef __ASM__47 48 #include <typedefs.h>49 50 48 #define context_set(ctx, pc, stack, size) \ 51 49 context_set_generic(ctx, pc, stack, size) 52 53 /*54 * Only save registers that must be preserved across55 * function calls.56 */57 typedef struct {58 uintptr_t sp;59 uintptr_t pc;60 61 uint32_t s0;62 uint32_t s1;63 uint32_t s2;64 uint32_t s3;65 uint32_t s4;66 uint32_t s5;67 uint32_t s6;68 uint32_t s7;69 uint32_t s8;70 uint32_t gp;71 72 ipl_t ipl;73 } context_t;74 75 #endif /* __ASM__ */76 50 77 51 #endif
Note:
See TracChangeset
for help on using the changeset viewer.