OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / bionic / libc / arch-sh / syscalls / sched_get_priority_max.S
1 /* autogenerated by gensyscalls.py */
2 #include <sys/linux-syscalls.h>
3
4     .text
5     .type sched_get_priority_max, @function
6     .globl sched_get_priority_max
7     .align 4
8
9 sched_get_priority_max:
10
11     /* invoke trap */
12     mov.l   0f, r3  /* trap num */
13     trapa   #(1 + 0x10)
14
15     /* check return value */
16     cmp/pz  r0
17     bt      __NR_sched_get_priority_max_end
18
19     /* keep error number */
20     sts.l   pr, @-r15
21     mov.l   1f, r1
22     jsr     @r1
23     mov     r0, r4
24     lds.l   @r15+, pr
25
26 __NR_sched_get_priority_max_end:
27     rts
28     nop
29
30     .align  2
31 0:  .long   __NR_sched_get_priority_max
32 1:  .long   __set_syscall_errno