repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
sys
/
sparc64
/
wait.S
blob
49ab5e9391e583d885998eb8d402bdc930f27d58
1
! wait() "system" call
2
! It is really not a system call as it uses wait4().
3
4
#include "sys/syscallasm.h"
5
6
TEXT_SECTION
7
ALIGN (4)
8
9
#ifdef REENT
10
11
GLOBAL (ASM_SYMBOL (_wait_r))
12
ASM_SYMBOL (_wait_r):
13
save %sp,-136,%sp
14
clr %o1
15
mov %i1,%o2
16
clr %o3
17
call ASM_SYMBOL (_wait4_r)
18
clr %o4
19
jmpl %i7+8,%g0
20
restore %g0,%o0,%o0
21
22
#else /* ! REENT */
23
24
GLOBAL (ASM_SYMBOL (wait))
25
ASM_SYMBOL (wait):
26
save %sp,-136,%sp
27
clr %o0
28
mov %i0,%o1
29
clr %o2
30
call ASM_SYMBOL (wait4)
31
clr %o3
32
jmpl %i7+8,%g0
33
restore %g0,%o0,%o0
34
35
#endif /* ! REENT */