1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
1999-02-03  Jakub Jelinek  <jj@ultra.linux.cz>

	* sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Set branch
	prediction correctly.

	* sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Signal
	takes a pointer to __sigcontext_t.
	* sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Do a nop after retl.
	* sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Remove fork.S.
This commit is contained in:
Ulrich Drepper
1999-02-03 09:31:42 +00:00
parent e72ed84d09
commit f549233427
8 changed files with 40 additions and 17 deletions

View File

@ -1,6 +1,4 @@
clone.S
pipe.S
fork.S
kernel_stat.h
init-first.h
setresuid.c

View File

@ -1,5 +1,5 @@
/* Low-level statistical profiling support function. Linux/SPARC version.
Copyright (C) 1997 Free Software Foundation, Inc.
Copyright (C) 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -20,7 +20,7 @@
#include <signal.h>
void
profil_counter (int signo, __siginfo_t si)
profil_counter (int signo, __siginfo_t *si)
{
profil_count ((void *) si.si_regs.pc);
profil_count ((void *) si->si_regs.pc);
}

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1997 Free Software Foundation, Inc.
/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Miguel de Icaza <miguel@gnu.ai.mit.edu>, 1997.
@ -20,15 +20,15 @@
#include <sysdep.h>
ENTRY (__libc_pipe)
mov %o0, %o2 /* Save PIPEDES. */
mov %o0, %o2 /* Save PIPEDES. */
LOADSYSCALL(pipe)
ta 0x6d
bcc,pn %xcc, 2f
bcc,pt %xcc, 2f
nop
SYSCALL_ERROR_HANDLER
2: st %o0, [%o2] /* PIPEDES[0] = %o0; */
st %o1, [%o2 + 4] /* PIPEDES[1] = %o1; */
2: st %o0, [%o2] /* PIPEDES[0] = %o0; */
st %o1, [%o2 + 4] /* PIPEDES[1] = %o1; */
retl
clr %o0
PSEUDO_END (__libc_pipe)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1997 Free Software Foundation, Inc.
/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -35,5 +35,6 @@ ENTRY (syscall)
SYSCALL_ERROR_HANDLER
1: retl
nop
PSEUDO_END (syscall)