/branches/arm/uspace/libc/arch/arm32/src/psthread.S |
---|
32,7 → 32,18 |
.global context_restore |
context_save: |
/* TODO */ |
stmia r0!, {sp, lr} |
stmia r0!, {r4-r8, r10-r11} |
# return 1 |
mov r0, #1 |
mov pc, lr |
context_restore: |
/* TODO */ |
ldmia r0!, {sp, lr} |
ldmia r0!, {r4-r8, r10-r11} |
#return 0 |
mov r0, #0 |
mov pc, lr |