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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [sysdeps/] [m68k/] [libc_exit.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#include <unistd.h>
2
#include <sys/syscall.h>
3
 
4
#ifdef PTHREAD_KERNEL
5
#pragma weak machdep_sys__exit = __machdep_sys__exit
6
 
7
void
8
__machdep_sys__exit(int exit_code)
9
#else /* PTHREAD_KERNEL */
10
 
11
#ifdef _POSIX_THREADS
12
#pragma weak _exit
13
#endif
14
 
15
void
16
_exit(int exit_code)
17
#endif /* PTHREAD_KERNEL */
18
{
19
  __asm__ volatile ("moveq %0,%/d0;movel %1,%/d1;trap #0"
20
                    ::"i" (SYS_exit),"g" (exit_code) : "%d0", "%d1");
21
}

powered by: WebSVN 2.1.0

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