source: patches/linux-2.6.19.1-alpha_io_fix-1.patch@ e9f5e6e

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

Update Linux Patches

  • Property mode set to 100644
File size: 1.3 KB
  • include/asm-alpha/compiler.h

    Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org>
    Date: 2006-11-29
    Initial Package Version: 2.6.19
    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.
    
    diff -Naur linux-2.6.19.orig/include/asm-alpha/compiler.h linux-2.6.19/include/asm-alpha/compiler.h
    old new  
    7878#else
    7979#define __kernel_ldbu(mem)                              \
    8080  ({ unsigned char __kir;                               \
    81      __asm__("ldbu %0,%1" : "=r"(__kir) : "m"(mem));    \
     81     __asm__(".arch ev6; ldbu %0,%1" : "=r"(__kir) : "m"(mem)); \
    8282     __kir; })
    8383#define __kernel_ldwu(mem)                              \
    8484  ({ unsigned short __kir;                              \
    85      __asm__("ldwu %0,%1" : "=r"(__kir) : "m"(mem));    \
     85     __asm__(".arch ev6; ldwu %0,%1" : "=r"(__kir) : "m"(mem)); \
    8686     __kir; })
    8787#define __kernel_stb(val,mem) \
    88   __asm__("stb %1,%0" : "=m"(mem) : "r"(val))
     88  __asm__(".arch ev6; stb %1,%0" : "=m"(mem) : "r"(val))
    8989#define __kernel_stw(val,mem) \
    90   __asm__("stw %1,%0" : "=m"(mem) : "r"(val))
     90  __asm__(".arch ev6; stw %1,%0" : "=m"(mem) : "r"(val))
    9191#endif
    9292
    9393#ifdef __KERNEL__
Note: See TracBrowser for help on using the repository browser.