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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [sparc64/] [wait.S] - Blame information for rev 194

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
! 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 */

powered by: WebSVN 2.1.0

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