source: patches/glibc-2.6.1-alpha_ioperm_fix-1.patch@ 07e2606

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 07e2606 was 598efa5d, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Update Patches

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[02ce565]1Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org>
[44426cf]2Date: 2007-05-19
3Initial Package Version: 2.6
[02ce565]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
[44426cf]9diff -Naur glibc-2.6.orig/sysdeps/unix/sysv/linux/alpha/ioperm.c glibc-2.6/sysdeps/unix/sysv/linux/alpha/ioperm.c
10--- glibc-2.6.orig/sysdeps/unix/sysv/linux/alpha/ioperm.c 2007-05-07 15:57:20.000000000 -0700
11+++ glibc-2.6/sysdeps/unix/sysv/linux/alpha/ioperm.c 2007-05-19 13:29:49.000000000 -0700
12@@ -178,13 +178,13 @@
[02ce565]13 static inline void
14 stb_mb(unsigned char val, unsigned long addr)
15 {
16- __asm__("stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val));
17+ __asm__(".arch ev6; stb %1,%0; mb" : "=m"(*(vucp)addr) : "r"(val));
18 }
19
20 static inline void
21 stw_mb(unsigned short val, unsigned long addr)
22 {
23- __asm__("stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val));
24+ __asm__(".arch ev6; stw %1,%0; mb" : "=m"(*(vusp)addr) : "r"(val));
25 }
26
27 static inline void
[44426cf]28@@ -356,7 +356,7 @@
[02ce565]29 unsigned long int addr = dense_port_to_cpu_addr (port);
30 unsigned char r;
31
32- __asm__ ("ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr));
33+ __asm__ (".arch ev6; ldbu %0,%1" : "=r"(r) : "m"(*(vucp)addr));
34 return r;
35 }
36
[44426cf]37@@ -366,7 +366,7 @@
[02ce565]38 unsigned long int addr = dense_port_to_cpu_addr (port);
39 unsigned short r;
40
41- __asm__ ("ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr));
42+ __asm__ (".arch ev6; ldwu %0,%1" : "=r"(r) : "m"(*(vusp)addr));
43 return r;
44 }
45
[44426cf]46
Note: See TracBrowser for help on using the repository browser.