Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git] / newlib / libc / sys / sysmec / trap.S
blob911c02dbc8a60801e8003dd2b8969d7a7ee9e285
1         .text
2         .global ___trap0
3 ___trap0:
4         syscall
5         cmp 0,d0
6         beq .L0
7         mov d0,(_errno)
8 .L0:
9 #ifdef __mn10300__
10         rets
11 #else
12         rts
13 #endif