chiark / gitweb /
volume_id: provide libvolume_id.a file
[elogind.git] / klibc / klibc / arch / sparc64 / syscall.S
1 /*
2  * arch/sparc64/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       0x6d
12         bcc     %xcc, 1f
13           sethi %hi(errno), %g4
14         or      %g4, %lo(errno), %g4
15         st      %o0,[%g4]
16 1:
17         retl
18           movcs %xcc, -1, %o0