• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* autogenerated by gensyscalls.py */
2#include <sys/linux-syscalls.h>
3
4    .text
5    .type futex, @function
6    .globl futex
7    .align 4
8
9futex:
10
11    /* get ready for additonal arg */
12    mov.l   @r15, r0
13    mov.l   @(4, r15), r1
14
15    /* invoke trap */
16    mov.l   0f, r3  /* trap num */
17    trapa   #(6 + 0x10)
18
19    /* check return value */
20    cmp/pz  r0
21    bt      __NR_futex_end
22
23    /* keep error number */
24    sts.l   pr, @-r15
25    mov.l   1f, r1
26    jsr     @r1
27    mov     r0, r4
28    lds.l   @r15+, pr
29
30__NR_futex_end:
31    rts
32    nop
33
34    .align  2
350:  .long   __NR_futex
361:  .long   __set_syscall_errno
37