[uPatch] Compile fixe - msr.c

From: Francois romieu (romieu@ensta.fr)
Date: Fri May 26 2000 - 17:20:39 EST


  not 100% sure from the patch but my 2.7.2 complained about the original.

diff -u --recursive linux-2.4.0-test1-ac2.orig/arch/i386/kernel/msr.c linux-2.4.0-test1-ac2/arch/i386/kernel/msr.c
--- linux-2.4.0-test1-ac2.orig/arch/i386/kernel/msr.c Fri May 26 15:52:22 2000
+++ linux-2.4.0-test1-ac2/arch/i386/kernel/msr.c Fri May 26 19:20:18 2000
@@ -55,8 +55,8 @@
                " .align 4\n"
                " .long 1b,3b\n"
                ".previous"
- : "+bDS" (err)
- : "a" (eax), "d" (edx), "c" (reg), "i" (-EIO));
+ : "=bDS" (err)
+ : "0" (err), "a" (eax), "d" (edx), "c" (reg), "i" (-EIO));
 
   return err;
 }
@@ -76,8 +76,8 @@
                " .align 4\n"
                " .long 1b,3b\n"
                ".previous"
- : "+bDS" (err), "=a" (*eax), "=d" (*edx)
- : "c" (reg), "i" (-EIO));
+ : "=bDS" (err), "=a" (*eax), "=d" (*edx)
+ : "0" (err), "c" (reg), "i" (-EIO));
 
   /* Note: if err is specified as +r, egcs-2.91.66 seems to barf */
 

-- 
Ueimor

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:16 EST