From 07f03a4d3850f65108cee6e305b430bbf51d50eb Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 19 Jun 1996 06:38:13 +0000 Subject: [PATCH] Mon Jun 10 17:50:31 1996 David Mosberger-Tang * 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. --- .../sysv/linux/alpha/ieee_get_fp_control.S | 4 ++-- .../sysv/linux/alpha/ieee_set_fp_control.S | 4 ++-- sysdeps/unix/sysv/linux/alpha/llseek.S | 10 ++++------ sysdeps/unix/sysv/linux/alpha/sigsuspend.S | 4 ++-- sysdeps/unix/sysv/linux/alpha/syscall.S | 18 +++++++++--------- 5 files changed, 19 insertions(+), 21 deletions(-) diff --git a/sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S b/sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S index 52c945aec26..e09fa738e21 100644 --- a/sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S +++ b/sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S @@ -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) diff --git a/sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S b/sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S index d72585daf18..d748c811420 100644 --- a/sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S +++ b/sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S @@ -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) diff --git a/sysdeps/unix/sysv/linux/alpha/llseek.S b/sysdeps/unix/sysv/linux/alpha/llseek.S index bd8c6595c9c..6020f263cda 100644 --- a/sysdeps/unix/sysv/linux/alpha/llseek.S +++ b/sysdeps/unix/sysv/linux/alpha/llseek.S @@ -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 .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) diff --git a/sysdeps/unix/sysv/linux/alpha/sigsuspend.S b/sysdeps/unix/sysv/linux/alpha/sigsuspend.S index 26a1869783a..aaae9a308a4 100644 --- a/sysdeps/unix/sysv/linux/alpha/sigsuspend.S +++ b/sysdeps/unix/sysv/linux/alpha/sigsuspend.S @@ -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) diff --git a/sysdeps/unix/sysv/linux/alpha/syscall.S b/sysdeps/unix/sysv/linux/alpha/syscall.S index c80a523239f..f1b36e93123 100644 --- a/sysdeps/unix/sysv/linux/alpha/syscall.S +++ b/sysdeps/unix/sysv/linux/alpha/syscall.S @@ -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 - - call_pal PAL_callsys # Invoke system call + 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 */ 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) -- 2.47.3