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
/
execve.S
blob
804d2ee3cea479571c6b941051ed1da2a046339c
1
! execve.S
2
! This function is invoked by the other exec*() fns.
3
!
4
! If sizeof(char *) == 64, we invoke a new Shade function until the real one
5
! is defined.
6
7
#include "sys/syscallasm.h"
8
9
TEXT_SECTION
10
ALIGN (4)
11
GLOBAL (ASM_SYMBOL (execve))
12
ASM_SYMBOL (execve):
13
mov SYS_execve,%g1
14
#if TARGET_PTR_SIZE == 64
15
ta 42
16
#else
17
ta SYSCALL_TRAP
18
#endif
19
20
bcc noerr
21
nop
22
23
seterrno()
24
25
noerr:
26
jmpl %o7+8,%g0
27
nop