newlib-cygwin/newlib/libc/sys/sysmec/trap.S

14 lines
128 B
ArmAsm
Raw Normal View History

2000-02-18 03:39:52 +08:00
.text
.global ___trap0
___trap0:
syscall
cmp 0,d0
beq .L0
mov d0,(_errno)
.L0:
#ifdef __mn10300__
rets
#else
rts
#endif