Submitted By: Joe Ciccone Date: 2006-06-25 Initial Package Version: 2.4 Origin: Joe Ciccone Upstream Status: Unknown Description: Fixes a build issue with alpha on some processors. The instructions being modified are specific to ev56/ev6. --- glibc-2.4.orig/sysdeps/unix/sysv/linux/alpha/ioperm.c 2006-06-24 18:31:02.000000000 -0400 +++ glibc-2.4/sysdeps/unix/sysv/linux/alpha/ioperm.c 2006-06-24 18:32:15.000000000 -0400 @@ -173,13 +173,13 @@ static inline void stb_mb(unsigned char val, unsigned long addr) { - __asm__("stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val)); + __asm__(".arch ev6; stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val)); } static inline void stw_mb(unsigned short val, unsigned long addr) { - __asm__("stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val)); + __asm__(".arch ev6; stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val)); } static inline void @@ -351,7 +351,7 @@ unsigned long int addr = dense_port_to_cpu_addr (port); unsigned char r; - __asm__ ("ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr)); + __asm__ (".arch ev6; ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr)); return r; } @@ -361,7 +361,7 @@ unsigned long int addr = dense_port_to_cpu_addr (port); unsigned short r; - __asm__ ("ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr)); + __asm__ (".arch ev6; ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr)); return r; }