mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
c6553f6492
(including uart0 integration, rt-extension removal)
30 lines
487 B
ArmAsm
30 lines
487 B
ArmAsm
.text
|
|
|
|
.extern $_native_saved_eip
|
|
.extern $_native_isr_ctx
|
|
.extern $_native_cur_ctx
|
|
.extern $_native_in_isr
|
|
|
|
.globl _native_sig_leave_tramp
|
|
|
|
_native_sig_leave_tramp:
|
|
pushl %eax
|
|
pushf
|
|
pushl %ebp
|
|
pushl %esp
|
|
|
|
movl %esp, %ebp
|
|
subl $24, %esp
|
|
movl $_native_isr_ctx, 4(%esp)
|
|
movl $_native_cur_ctx, (%esp)
|
|
call swapcontext
|
|
|
|
addl $24, %esp
|
|
popl %esp
|
|
popl %ebp
|
|
popf
|
|
popl %eax
|
|
movl $0x0, _native_in_isr;
|
|
|
|
jmp *_native_saved_eip
|