1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/native/tramp.S

46 lines
667 B
ArmAsm
Raw Normal View History

.text
2013-05-15 17:45:43 +02:00
#ifdef __MACH__
.globl __native_sig_leave_tramp
__native_sig_leave_tramp:
pushf
2013-10-16 15:33:04 +02:00
pusha
2013-05-15 17:45:43 +02:00
2013-10-16 15:33:04 +02:00
pushl __native_isr_ctx
pushl __native_cur_ctx
2013-05-15 17:45:43 +02:00
call _swapcontext
2013-10-16 15:33:04 +02:00
addl $8, %esp
2013-05-15 17:45:43 +02:00
2014-01-21 12:22:55 +01:00
call _eINT
2013-10-16 15:33:04 +02:00
movl $0x0, __native_in_isr
popa
popf
2013-05-15 17:45:43 +02:00
jmp *__native_saved_eip
#else
.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:
pushf
2013-10-16 15:33:04 +02:00
pusha
2013-10-16 15:33:04 +02:00
pushl _native_isr_ctx
pushl _native_cur_ctx
call swapcontext
2013-10-16 15:33:04 +02:00
addl $8, %esp
call eINT
2013-10-16 15:33:04 +02:00
movl $0x0, _native_in_isr
popa
popf
jmp *_native_saved_eip
2013-05-15 17:45:43 +02:00
#endif