LEAF(__ieee_get_fp_control, 8)
lda sp, -8(sp)
- .prologue 0
+ .prologue 1
mov sp, a1
ldi a0, GSI_IEEE_FP_CONTROL
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)
LEAF(__ieee_set_fp_control, 8)
lda sp, -8(sp)
- .prologue 0
+ .prologue 1
stq a0, 0(sp)
mov sp, a1
error: br gp, 1f
1: ldgp gp, 0(gp)
- jmp zero, syscall_error
+ jmp zero, __syscall_error
END(__ieee_set_fp_control)
/* 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 */
error: br gp, 1f
1: ldgp gp, 0(gp)
- jmp zero, syscall_error
+ jmp zero, __syscall_error
END(llseek)
.text
LEAF(sigsuspend, 0)
- .prologue 0
+ .prologue 1
ldq a0, 0(a0)
ldi v0, __NR_sigsuspend
error: br gp, 1f
1: ldgp gp, 0(gp)
- jmp zero, syscall_error
+ jmp zero, __syscall_error
END(sigsuspend)
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)