OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [sparc64/] [execve.S] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
! 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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.