source: patches/glibc-2.5-alpha_ioperm_fix-1.patch@ 4dca606

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 4dca606 was 7707cfa, checked in by Jim Gifford <clfs@…>, 18 years ago

Glibc 2.5 Patches

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[02ce565]1Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org>
2Date: 2006-06-25
3Initial Package Version: 2.4
4Origin: Joe Ciccone
5Upstream Status: Unknown
6Description: Fixes a build issue with alpha on some processors. The
7 instructions being modified are specific to ev56/ev6.
8
9--- glibc-2.4.orig/sysdeps/unix/sysv/linux/alpha/ioperm.c 2006-06-24 18:31:02.000000000 -0400
10+++ glibc-2.4/sysdeps/unix/sysv/linux/alpha/ioperm.c 2006-06-24 18:32:15.000000000 -0400
11@@ -173,13 +173,13 @@
12 static inline void
13 stb_mb(unsigned char val, unsigned long addr)
14 {
15- __asm__("stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val));
16+ __asm__(".arch ev6; stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val));
17 }
18
19 static inline void
20 stw_mb(unsigned short val, unsigned long addr)
21 {
22- __asm__("stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val));
23+ __asm__(".arch ev6; stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val));
24 }
25
26 static inline void
27@@ -351,7 +351,7 @@
28 unsigned long int addr = dense_port_to_cpu_addr (port);
29 unsigned char r;
30
31- __asm__ ("ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr));
32+ __asm__ (".arch ev6; ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr));
33 return r;
34 }
35
36@@ -361,7 +361,7 @@
37 unsigned long int addr = dense_port_to_cpu_addr (port);
38 unsigned short r;
39
40- __asm__ ("ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr));
41+ __asm__ (".arch ev6; ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr));
42 return r;
43 }
44
Note: See TracBrowser for help on using the repository browser.