/branches/arm/uspace/libc/arch/arm32/include/psthread.h |
---|
49,16 → 49,14 |
typedef struct { |
uint32_t sp; |
uint32_t pc; |
uint32_t tls; //? where will be stored? |
// registers that called subrutine cannot change |
uint32_t r4; |
uint32_t r5; |
uint32_t r6; |
uint32_t r7; |
uint32_t r8; |
uint32_t tls; |
uint32_t r10; |
uint32_t r11; |
// not shure if not to be changed r9, IP, |
} context_t; |
#endif |
/branches/arm/uspace/libc/arch/arm32/src/psthread.S |
---|
33,7 → 33,7 |
context_save: |
stmia r0!, {sp, lr} |
stmia r0!, {r4-r8, r10-r11} |
stmia r0!, {r4-r11} |
# return 1 |
mov r0, #1 |
42,7 → 42,7 |
context_restore: |
ldmia r0!, {sp, lr} |
ldmia r0!, {r4-r8, r10-r11} |
ldmia r0!, {r4-r11} |
#return 0 |
mov r0, #0 |