source:
patches/glibc-2.4-alpha_ioperm_fix-1.patch@
c1fe1fee
Last change on this file since c1fe1fee was 02ce565, checked in by , 19 years ago | |
---|---|
|
|
File size: 1.4 KB |
-
sysdeps/unix/sysv/linux/alpha/ioperm.c
Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org> 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.
old new 173 173 static inline void 174 174 stb_mb(unsigned char val, unsigned long addr) 175 175 { 176 __asm__(" stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val));176 __asm__(".arch ev6; stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val)); 177 177 } 178 178 179 179 static inline void 180 180 stw_mb(unsigned short val, unsigned long addr) 181 181 { 182 __asm__(" stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val));182 __asm__(".arch ev6; stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val)); 183 183 } 184 184 185 185 static inline void … … 351 351 unsigned long int addr = dense_port_to_cpu_addr (port); 352 352 unsigned char r; 353 353 354 __asm__ (" ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr));354 __asm__ (".arch ev6; ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr)); 355 355 return r; 356 356 } 357 357 … … 361 361 unsigned long int addr = dense_port_to_cpu_addr (port); 362 362 unsigned short r; 363 363 364 __asm__ (" ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr));364 __asm__ (".arch ev6; ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr)); 365 365 return r; 366 366 } 367 367
Note:
See TracBrowser
for help on using the repository browser.