mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/unix/sysv/linux/alpha/sysdep.S, sysdeps/unix/sysv/linux/alpha/brk.S, sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S, sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S, sysdeps/unix/sysv/linux/alpha/llseek.S, sysdeps/unix/sysv/linux/alpha/sigsuspend.S, sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to __syscall_error to avoid intruding application name space.
This commit is contained in:
parent
939caadf20
commit
07f03a4d38
@ -24,7 +24,7 @@ Cambridge, MA 02139, USA. */
|
||||
|
||||
LEAF(__ieee_get_fp_control, 8)
|
||||
lda sp, -8(sp)
|
||||
.prologue 0
|
||||
.prologue 1
|
||||
|
||||
mov sp, a1
|
||||
ldi a0, GSI_IEEE_FP_CONTROL
|
||||
@ -39,7 +39,7 @@ LEAF(__ieee_get_fp_control, 8)
|
||||
error: lda sp, 8(sp)
|
||||
br gp, 1f
|
||||
1: ldgp gp, 0(gp)
|
||||
jmp zero, syscall_error
|
||||
jmp zero, __syscall_error
|
||||
|
||||
END(__ieee_get_fp_control)
|
||||
|
||||
|
@ -22,7 +22,7 @@ Cambridge, MA 02139, USA. */
|
||||
|
||||
LEAF(__ieee_set_fp_control, 8)
|
||||
lda sp, -8(sp)
|
||||
.prologue 0
|
||||
.prologue 1
|
||||
|
||||
stq a0, 0(sp)
|
||||
mov sp, a1
|
||||
@ -37,7 +37,7 @@ LEAF(__ieee_set_fp_control, 8)
|
||||
|
||||
error: br gp, 1f
|
||||
1: ldgp gp, 0(gp)
|
||||
jmp zero, syscall_error
|
||||
jmp zero, __syscall_error
|
||||
|
||||
END(__ieee_set_fp_control)
|
||||
|
||||
|
@ -18,19 +18,17 @@ Cambridge, MA 02139, USA. */
|
||||
|
||||
/* For compatibility only: a "long" is 64 bits on the Alpha, so
|
||||
llseek() isn't really needed. But there are some programs out
|
||||
there who may depend on it being around.
|
||||
*/
|
||||
there who may depend on it being around. */
|
||||
|
||||
#include <sysdep.h>
|
||||
|
||||
.text
|
||||
ENTRY(llseek)
|
||||
.prologue 0
|
||||
|
||||
mov a3, t0 /* save result address */
|
||||
.prologue 1
|
||||
|
||||
sll a1, 32, a1 /* build a 64 bit ofs out of 32 bit operands */
|
||||
zap a2, 0xf0, a2
|
||||
mov a3, t0 /* save result address */
|
||||
bis a2, a1, a1
|
||||
|
||||
mov a4, a2 /* shift down whence */
|
||||
@ -44,6 +42,6 @@ ENTRY(llseek)
|
||||
|
||||
error: br gp, 1f
|
||||
1: ldgp gp, 0(gp)
|
||||
jmp zero, syscall_error
|
||||
jmp zero, __syscall_error
|
||||
|
||||
END(llseek)
|
||||
|
@ -24,7 +24,7 @@ Cambridge, MA 02139, USA. */
|
||||
.text
|
||||
|
||||
LEAF(sigsuspend, 0)
|
||||
.prologue 0
|
||||
.prologue 1
|
||||
|
||||
ldq a0, 0(a0)
|
||||
ldi v0, __NR_sigsuspend
|
||||
@ -34,6 +34,6 @@ LEAF(sigsuspend, 0)
|
||||
|
||||
error: br gp, 1f
|
||||
1: ldgp gp, 0(gp)
|
||||
jmp zero, syscall_error
|
||||
jmp zero, __syscall_error
|
||||
|
||||
END(sigsuspend)
|
||||
|
@ -42,19 +42,19 @@ Cambridge, MA 02139, USA. */
|
||||
|
||||
|
||||
LEAF(__syscall, 0)
|
||||
bis a0, a0, v0 # Syscall number -> v0
|
||||
bis a1, a1, a0 # arg1-arg5 -> a0-a4
|
||||
bis a2, a2, a1
|
||||
bis a3, a3, a2
|
||||
bis a4, a4, a3
|
||||
bis a5, a5, a4
|
||||
mov a0, v0 /* Syscall number -> v0 */
|
||||
mov a1, a0 /* arg1-arg5 -> a0-a4 */
|
||||
mov a2, a1
|
||||
mov a3, a2
|
||||
mov a4, a3
|
||||
mov a5, a4
|
||||
|
||||
call_pal PAL_callsys # Invoke system call
|
||||
call_pal PAL_callsys /* Invoke system call */
|
||||
bne a3, error
|
||||
ret
|
||||
|
||||
error: br gp, 2f
|
||||
2: ldgp gp, 0(gp)
|
||||
jmp zero, syscall_error
|
||||
jmp zero, __syscall_error
|
||||
|
||||
weak_alias(__syscall, syscall)
|
||||
|
Loading…
Reference in New Issue
Block a user