This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Fix for syscalls for cris
- From: Uwe Reimann <libc-alpha at pulsar dot homelinux dot net>
- To: libc-alpha at sources dot redhat dot com
- Date: Wed, 11 Jun 2003 20:16:47 +0200
- Subject: Fix for syscalls for cris
Hi,
the following patch against glibc-2.3.1 corrects the passing of
arguments to syscalls with more than four arguments for the cris
architecture.
Best regards, Uwe
diff -cpr glibc-2.3.1_orig/sysdeps/unix/sysv/linux/cris/sysdep.h glibc-2.3.1/sysdeps/unix/sysv/linux/cris/sysdep.h
*** glibc-2.3.1_orig/sysdeps/unix/sysv/linux/cris/sysdep.h Sat Jul 7 21:21:34 2001
--- glibc-2.3.1/sysdeps/unix/sysv/linux/cris/sysdep.h Sat Jun 7 14:50:12 2003
***************
*** 197,203 ****
#define LOAD_ARGS_c_5(r10, r11, r12, r13, mof) \
LOAD_ARGS_c_4(r10, r11, r12, r13)
#define LOAD_ARGS_asm_5(r10, r11, r12, r13, mof) \
! LOAD_ARGS_asm_4 (r10, r11, r12, r13) "move %5,$mof\n\t"
#define ASM_CLOBBER_5 ASM_CLOBBER_4
#define ASM_ARGS_5(r10, r11, r12, r13, mof) \
ASM_ARGS_4 (r10, r11, r12, r13), "g" (mof)
--- 197,203 ----
#define LOAD_ARGS_c_5(r10, r11, r12, r13, mof) \
LOAD_ARGS_c_4(r10, r11, r12, r13)
#define LOAD_ARGS_asm_5(r10, r11, r12, r13, mof) \
! LOAD_ARGS_asm_4 (r10, r11, r12, r13) "move %6,$mof\n\t"
#define ASM_CLOBBER_5 ASM_CLOBBER_4
#define ASM_ARGS_5(r10, r11, r12, r13, mof) \
ASM_ARGS_4 (r10, r11, r12, r13), "g" (mof)
***************
*** 206,212 ****
LOAD_ARGS_c_5(r10, r11, r12, r13, mof)
#define LOAD_ARGS_asm_6(r10, r11, r12, r13, mof, srp) \
LOAD_ARGS_asm_5(r10, r11, r12, r13, mof) \
! "move %6,$srp\n\t"
#define ASM_CLOBBER_6 ASM_CLOBBER_5, "srp"
#define ASM_ARGS_6(r10, r11, r12, r13, mof, srp) \
ASM_ARGS_5 (r10, r11, r12, r13, mof), "g" (srp)
--- 206,212 ----
LOAD_ARGS_c_5(r10, r11, r12, r13, mof)
#define LOAD_ARGS_asm_6(r10, r11, r12, r13, mof, srp) \
LOAD_ARGS_asm_5(r10, r11, r12, r13, mof) \
! "move %7,$srp\n\t"
#define ASM_CLOBBER_6 ASM_CLOBBER_5, "srp"
#define ASM_ARGS_6(r10, r11, r12, r13, mof, srp) \
ASM_ARGS_5 (r10, r11, r12, r13, mof), "g" (srp)