chiark / gitweb /
[PATCH] update klibc to version 0.181
[elogind.git] / klibc / klibc / arch / sparc / syscall.S
1 /*
2  * arch/sparc/syscall.S
3  *
4  * Common system-call stub; %g1 already set to syscall number
5  */
6
7         .globl  __syscall_common
8         .type   __syscall_common,#function
9         .align  4
10 __syscall_common:
11         t       0x10
12         bcc     1f
13           sethi %hi(errno), %g4
14         or      %g4, %lo(errno), %g4
15         st      %o0,[%g4]
16         mov     -1, %o0
17 1:
18         retl
19           nop