fix readdir not to set ENOENT when directory is removed while reading
[musl] / src / internal / superh / syscall.s
1 .global __syscall
2 .type   __syscall, @function
3 __syscall:
4         ! The kernel syscall entry point documents that the trap number indicates
5         ! the number of arguments being passed, but it then ignores that information.
6         ! Since we do not actually know how many arguments are being passed, we will
7         ! say there are six, since that is the maximum we support here.
8         mov r4, r3
9         mov r5, r4
10         mov r6, r5
11         mov r7, r6
12         mov.l @r15, r7
13         mov.l @(4,r15), r0
14         mov.l @(8,r15), r1
15         trapa #22
16         or r0, r0
17         or r0, r0
18         or r0, r0
19         or r0, r0
20         or r0, r0
21         rts
22          nop