source: patches/linux-2.6.17.6-alpha_io_fix-1.patch@ 448817bb

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 448817bb was d75f6d0, checked in by Jim Gifford <clfs@…>, 18 years ago

Updates to Patches for 2.6.17.6

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[02ce565]1Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org>
2Date: 2006-06-25
3Initial Package Version: 2.6.17.1
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--- linux-2.6.17.1.orig/include/asm-alpha/compiler.h 2006-06-20 05:31:55.000000000 -0400
10+++ linux-2.6.17.1/include/asm-alpha/compiler.h 2006-06-25 16:13:22.000000000 -0400
11@@ -78,16 +78,16 @@
12 #else
13 #define __kernel_ldbu(mem) \
14 ({ unsigned char __kir; \
15- __asm__("ldbu %0,%1" : "=r"(__kir) : "m"(mem)); \
16+ __asm__(".arch ev6; ldbu %0,%1" : "=r"(__kir) : "m"(mem)); \
17 __kir; })
18 #define __kernel_ldwu(mem) \
19 ({ unsigned short __kir; \
20- __asm__("ldwu %0,%1" : "=r"(__kir) : "m"(mem)); \
21+ __asm__(".arch ev6; ldwu %0,%1" : "=r"(__kir) : "m"(mem)); \
22 __kir; })
23 #define __kernel_stb(val,mem) \
24- __asm__("stb %1,%0" : "=m"(mem) : "r"(val))
25+ __asm__(".arch ev6; stb %1,%0" : "=m"(mem) : "r"(val))
26 #define __kernel_stw(val,mem) \
27- __asm__("stw %1,%0" : "=m"(mem) : "r"(val))
28+ __asm__(".arch ev6; stw %1,%0" : "=m"(mem) : "r"(val))
29 #endif
30
31 /* Some idiots over in <linux/compiler.h> thought inline should imply
Note: See TracBrowser for help on using the repository browser.