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