source:
patches/glibc-2.6.1-alpha_ioperm_fix-1.patch@
2978738
Last change on this file since 2978738 was 598efa5d, checked in by , 17 years ago | |
---|---|
|
|
File size: 1.5 KB |
-
sysdeps/unix/sysv/linux/alpha/ioperm.c
Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org> Date: 2007-05-19 Initial Package Version: 2.6 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. diff -Naur glibc-2.6.orig/sysdeps/unix/sysv/linux/alpha/ioperm.c glibc-2.6/sysdeps/unix/sysv/linux/alpha/ioperm.c
old new 178 178 static inline void 179 179 stb_mb(unsigned char val, unsigned long addr) 180 180 { 181 __asm__(" stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val));181 __asm__(".arch ev6; stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val)); 182 182 } 183 183 184 184 static inline void 185 185 stw_mb(unsigned short val, unsigned long addr) 186 186 { 187 __asm__(" stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val));187 __asm__(".arch ev6; stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val)); 188 188 } 189 189 190 190 static inline void … … 356 356 unsigned long int addr = dense_port_to_cpu_addr (port); 357 357 unsigned char r; 358 358 359 __asm__ (" ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr));359 __asm__ (".arch ev6; ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr)); 360 360 return r; 361 361 } 362 362 … … 366 366 unsigned long int addr = dense_port_to_cpu_addr (port); 367 367 unsigned short r; 368 368 369 __asm__ (" ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr));369 __asm__ (".arch ev6; ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr)); 370 370 return r; 371 371 } 372 372
Note:
See TracBrowser
for help on using the repository browser.