more sparc64
This commit is contained in:
parent
880ab2f10a
commit
07b075d589
2 changed files with 10 additions and 10 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
/* Constants shared between setcontext() and getcontext(). Don't
|
/* Constants shared between setcontext() and getcontext(). Don't
|
||||||
install this header file. */
|
install this header file. */
|
||||||
|
|
||||||
|
|
||||||
#define UC_LINK 0
|
#define UC_LINK 0
|
||||||
#define __UC_SIGMASK 16
|
#define __UC_SIGMASK 16
|
||||||
#define UC_M_PC 40
|
#define UC_M_PC 40
|
||||||
|
|
@ -46,13 +47,18 @@
|
||||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
02111-1307 USA. */
|
02111-1307 USA. */
|
||||||
|
|
||||||
|
#define __ASSEMBLER__
|
||||||
#include <linux/linkage.h>
|
#include <linux/linkage.h>
|
||||||
|
|
||||||
|
#ifndef END
|
||||||
|
#define END(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*#include "ucontext_i.h" (up above) */
|
/*#include "ucontext_i.h" (up above) */
|
||||||
|
|
||||||
/* int getcontext(ucontext_t *); */
|
/* int getcontext(ucontext_t *); */
|
||||||
|
|
||||||
ENTRY(__getcontext)
|
ENTRY(getcontext)
|
||||||
|
|
||||||
ldx [%o0 + UC_LINK], %o1 /* Preserve uc_link field, the
|
ldx [%o0 + UC_LINK], %o1 /* Preserve uc_link field, the
|
||||||
trap clears it. */
|
trap clears it. */
|
||||||
|
|
@ -84,15 +90,13 @@ ENTRY(__getcontext)
|
||||||
stx %g0, [%o0 + UC_SIGMASK + 112]
|
stx %g0, [%o0 + UC_SIGMASK + 112]
|
||||||
stx %g0, [%o0 + UC_SIGMASK + 120]
|
stx %g0, [%o0 + UC_SIGMASK + 120]
|
||||||
#else
|
#else
|
||||||
# error Adjust __getcontext
|
# error Adjust getcontext
|
||||||
#endif
|
#endif
|
||||||
2:
|
2:
|
||||||
retl
|
retl
|
||||||
clr %o0
|
clr %o0
|
||||||
|
|
||||||
END(__getcontext)
|
END(getcontext)
|
||||||
|
|
||||||
weak_alias(__getcontext, getcontext)
|
|
||||||
|
|
||||||
/* Copyright (C) 1997, 2001 Free Software Foundation, Inc.
|
/* Copyright (C) 1997, 2001 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
@ -131,9 +135,5 @@ ENTRY(__setcontext)
|
||||||
stx %o2, [%o0 + __UC_SIGMASK]
|
stx %o2, [%o0 + __UC_SIGMASK]
|
||||||
ta 0x6f
|
ta 0x6f
|
||||||
|
|
||||||
#ifdef END
|
|
||||||
#define END(x)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
END(__setcontext)
|
END(__setcontext)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ OpenBSD-%-asm.$O: OpenBSD-%-asm.S
|
||||||
$CC $CFLAGS OpenBSD-$stem-asm.S
|
$CC $CFLAGS OpenBSD-$stem-asm.S
|
||||||
|
|
||||||
Linux-sparc64-context.$O: Linux-sparc64-context.S
|
Linux-sparc64-context.$O: Linux-sparc64-context.S
|
||||||
$CC $CFLAGS Linux-sparc64-context.S
|
$CC -m64 -mcpu=v9 $CFLAGS Linux-sparc64-context.S
|
||||||
|
|
||||||
test:V: tprimes tspawn
|
test:V: tprimes tspawn
|
||||||
primes 1 10007 >p1.txt
|
primes 1 10007 >p1.txt
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue