mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 14:40:06 +00: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)
|
LEAF(__ieee_get_fp_control, 8)
|
||||||
lda sp, -8(sp)
|
lda sp, -8(sp)
|
||||||
.prologue 0
|
.prologue 1
|
||||||
|
|
||||||
mov sp, a1
|
mov sp, a1
|
||||||
ldi a0, GSI_IEEE_FP_CONTROL
|
ldi a0, GSI_IEEE_FP_CONTROL
|
||||||
@ -39,7 +39,7 @@ LEAF(__ieee_get_fp_control, 8)
|
|||||||
error: lda sp, 8(sp)
|
error: lda sp, 8(sp)
|
||||||
br gp, 1f
|
br gp, 1f
|
||||||
1: ldgp gp, 0(gp)
|
1: ldgp gp, 0(gp)
|
||||||
jmp zero, syscall_error
|
jmp zero, __syscall_error
|
||||||
|
|
||||||
END(__ieee_get_fp_control)
|
END(__ieee_get_fp_control)
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ Cambridge, MA 02139, USA. */
|
|||||||
|
|
||||||
LEAF(__ieee_set_fp_control, 8)
|
LEAF(__ieee_set_fp_control, 8)
|
||||||
lda sp, -8(sp)
|
lda sp, -8(sp)
|
||||||
.prologue 0
|
.prologue 1
|
||||||
|
|
||||||
stq a0, 0(sp)
|
stq a0, 0(sp)
|
||||||
mov sp, a1
|
mov sp, a1
|
||||||
@ -37,7 +37,7 @@ LEAF(__ieee_set_fp_control, 8)
|
|||||||
|
|
||||||
error: br gp, 1f
|
error: br gp, 1f
|
||||||
1: ldgp gp, 0(gp)
|
1: ldgp gp, 0(gp)
|
||||||
jmp zero, syscall_error
|
jmp zero, __syscall_error
|
||||||
|
|
||||||
END(__ieee_set_fp_control)
|
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
|
/* For compatibility only: a "long" is 64 bits on the Alpha, so
|
||||||
llseek() isn't really needed. But there are some programs out
|
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>
|
#include <sysdep.h>
|
||||||
|
|
||||||
.text
|
.text
|
||||||
ENTRY(llseek)
|
ENTRY(llseek)
|
||||||
.prologue 0
|
.prologue 1
|
||||||
|
|
||||||
mov a3, t0 /* save result address */
|
|
||||||
|
|
||||||
sll a1, 32, a1 /* build a 64 bit ofs out of 32 bit operands */
|
sll a1, 32, a1 /* build a 64 bit ofs out of 32 bit operands */
|
||||||
zap a2, 0xf0, a2
|
zap a2, 0xf0, a2
|
||||||
|
mov a3, t0 /* save result address */
|
||||||
bis a2, a1, a1
|
bis a2, a1, a1
|
||||||
|
|
||||||
mov a4, a2 /* shift down whence */
|
mov a4, a2 /* shift down whence */
|
||||||
@ -44,6 +42,6 @@ ENTRY(llseek)
|
|||||||
|
|
||||||
error: br gp, 1f
|
error: br gp, 1f
|
||||||
1: ldgp gp, 0(gp)
|
1: ldgp gp, 0(gp)
|
||||||
jmp zero, syscall_error
|
jmp zero, __syscall_error
|
||||||
|
|
||||||
END(llseek)
|
END(llseek)
|
||||||
|
@ -24,7 +24,7 @@ Cambridge, MA 02139, USA. */
|
|||||||
.text
|
.text
|
||||||
|
|
||||||
LEAF(sigsuspend, 0)
|
LEAF(sigsuspend, 0)
|
||||||
.prologue 0
|
.prologue 1
|
||||||
|
|
||||||
ldq a0, 0(a0)
|
ldq a0, 0(a0)
|
||||||
ldi v0, __NR_sigsuspend
|
ldi v0, __NR_sigsuspend
|
||||||
@ -34,6 +34,6 @@ LEAF(sigsuspend, 0)
|
|||||||
|
|
||||||
error: br gp, 1f
|
error: br gp, 1f
|
||||||
1: ldgp gp, 0(gp)
|
1: ldgp gp, 0(gp)
|
||||||
jmp zero, syscall_error
|
jmp zero, __syscall_error
|
||||||
|
|
||||||
END(sigsuspend)
|
END(sigsuspend)
|
||||||
|
@ -42,19 +42,19 @@ Cambridge, MA 02139, USA. */
|
|||||||
|
|
||||||
|
|
||||||
LEAF(__syscall, 0)
|
LEAF(__syscall, 0)
|
||||||
bis a0, a0, v0 # Syscall number -> v0
|
mov a0, v0 /* Syscall number -> v0 */
|
||||||
bis a1, a1, a0 # arg1-arg5 -> a0-a4
|
mov a1, a0 /* arg1-arg5 -> a0-a4 */
|
||||||
bis a2, a2, a1
|
mov a2, a1
|
||||||
bis a3, a3, a2
|
mov a3, a2
|
||||||
bis a4, a4, a3
|
mov a4, a3
|
||||||
bis a5, a5, a4
|
mov a5, a4
|
||||||
|
|
||||||
call_pal PAL_callsys # Invoke system call
|
call_pal PAL_callsys /* Invoke system call */
|
||||||
bne a3, error
|
bne a3, error
|
||||||
ret
|
ret
|
||||||
|
|
||||||
error: br gp, 2f
|
error: br gp, 2f
|
||||||
2: ldgp gp, 0(gp)
|
2: ldgp gp, 0(gp)
|
||||||
jmp zero, syscall_error
|
jmp zero, __syscall_error
|
||||||
|
|
||||||
weak_alias(__syscall, syscall)
|
weak_alias(__syscall, syscall)
|
||||||
|
Loading…
Reference in New Issue
Block a user