/SPARTAN/trunk/arch/ppc32/include/context.h |
---|
35,7 → 35,7 |
struct context { |
__u32 r0; |
__u32 sp; |
__address sp; |
__u32 r2; |
__u32 r3; |
__u32 r4; |
66,7 → 66,7 |
__u32 r29; |
__u32 r30; |
__u32 r31; |
__u32 pc; |
__address pc; |
ipl_t ipl; |
} __attribute__ ((packed)); |
/SPARTAN/trunk/arch/ppc32/src/context.S |
---|
30,10 → 30,10 |
.text |
.global context_save |
.global context_restore |
.global context_save_arch |
.global context_restore_arch |
context_save: |
context_save_arch: |
REGISTERS_STORE r3 |
mflr r3 |
43,7 → 43,7 |
li r3, 1 |
blr |
context_restore: |
context_restore_arch: |
REGISTERS_LOAD r3 |
lwz r3, 128(r3) |