source: patches/linux-2.6.20.1-alpha_io_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 50361f7, checked in by Jim Gifford <clfs@…>, 18 years ago

Updates to Linux 2.6.20.1

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[de2b827]1Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org>
2Date: 2006-11-29
3Initial Package Version: 2.6.19
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
9diff -Naur linux-2.6.19.orig/include/asm-alpha/compiler.h linux-2.6.19/include/asm-alpha/compiler.h
10--- linux-2.6.19.orig/include/asm-alpha/compiler.h 2006-11-29 13:57:37.000000000 -0800
11+++ linux-2.6.19/include/asm-alpha/compiler.h 2006-11-29 19:11:54.000000000 -0800
12@@ -78,16 +78,16 @@
13 #else
14 #define __kernel_ldbu(mem) \
15 ({ unsigned char __kir; \
16- __asm__("ldbu %0,%1" : "=r"(__kir) : "m"(mem)); \
17+ __asm__(".arch ev6; ldbu %0,%1" : "=r"(__kir) : "m"(mem)); \
18 __kir; })
19 #define __kernel_ldwu(mem) \
20 ({ unsigned short __kir; \
21- __asm__("ldwu %0,%1" : "=r"(__kir) : "m"(mem)); \
22+ __asm__(".arch ev6; ldwu %0,%1" : "=r"(__kir) : "m"(mem)); \
23 __kir; })
24 #define __kernel_stb(val,mem) \
25- __asm__("stb %1,%0" : "=m"(mem) : "r"(val))
26+ __asm__(".arch ev6; stb %1,%0" : "=m"(mem) : "r"(val))
27 #define __kernel_stw(val,mem) \
28- __asm__("stw %1,%0" : "=m"(mem) : "r"(val))
29+ __asm__(".arch ev6; stw %1,%0" : "=m"(mem) : "r"(val))
30 #endif
31
32 #ifdef __KERNEL__
Note: See TracBrowser for help on using the repository browser.