mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 19:09:58 +08:00
3b60b701b1
* libc/sys/sysnecv850/rename.c: New file. * libc/sys/sysnecv850/Makefile.am (lib_a_SOURCES): Add rename.c * libc/sys/sysnecv850/Makefile.in: Regenerate. * libc/sys/sysnecv850/fstat.c (_fstat): Invoke trap for SYS_fstat. * libc/sys/sysnecv850/unlink.c (_unlink): Invoke trap for SYS_unlink.
11 lines
130 B
ArmAsm
11 lines
130 B
ArmAsm
.text
|
|
.global ___trap0
|
|
___trap0:
|
|
trap 31
|
|
tst r11,r11
|
|
bz .L0
|
|
movhi hi(_errno),r0,r6
|
|
st.w r11,lo(_errno)[r6]
|
|
.L0:
|
|
jmp [r31]
|