]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- i386 _proxy_pda fix for gcc42.
authorPaweł Sikora <pluto@pld-linux.org>
Thu, 1 Feb 2007 10:40:45 +0000 (10:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel-gcc4.patch -> 1.3

kernel-gcc4.patch

index f041919f03aa6ec37acf0db09c2de10457dfefd2..98374ffb1d1d0cdef2e7fd58f7d811358fa69ab7 100644 (file)
@@ -1,5 +1,5 @@
---- a/include/asm-x86_64/pda.h 2006-11-29 22:57:37.000000000 +0100
-+++ b/include/asm-x86_64/pda.h 2007-01-24 00:42:01.207003500 +0100
+--- a/include/asm-i386/pda.h   2006-11-29 22:57:37.000000000 +0100
++++ b/include/asm-i386/pda.h   2007-01-24 00:42:01.207003500 +0100
 @@ -55,22 +55,22 @@
        if (0) { T__ tmp__; tmp__ = (val); }    /* type checking */ \
        switch (sizeof(_proxy_pda.field)) {     \
            : "dIr" (bit), "i" (pda_offset(field)) : "memory"); \
        old__;                                                  \
  })
+--- a/include/asm-i386/pda.h   2007-02-01 11:25:09.262405000 +0100
++++ b/include/asm-i386/pda.h   2007-02-01 11:34:55.163021500 +0100
+@@ -39,22 +39,22 @@
+               if (0) { T__ tmp__; tmp__ = (val); }                    \
+               switch (sizeof(_proxy_pda.field)) {                     \
+               case 1:                                                 \
+-                      asm(op "b %1,%%gs:%c2"                          \
+-                          : "+m" (_proxy_pda.field)                   \
++                      asm volatile(op "b %0,%%gs:%c1":                \
+                           :"ri" ((T__)val),                           \
+-                           "i"(pda_offset(field)));                   \
++                           "i"(pda_offset(field))                     \
++                          :"memory");                                 \
+                       break;                                          \
+               case 2:                                                 \
+-                      asm(op "w %1,%%gs:%c2"                          \
+-                          : "+m" (_proxy_pda.field)                   \
++                      asm volatile(op "w %0,%%gs:%c1":                \
+                           :"ri" ((T__)val),                           \
+-                           "i"(pda_offset(field)));                   \
++                           "i"(pda_offset(field))                     \
++                          :"memory");                                 \
+                       break;                                          \
+               case 4:                                                 \
+-                      asm(op "l %1,%%gs:%c2"                          \
+-                          : "+m" (_proxy_pda.field)                   \
++                      asm volatile(op "l %0,%%gs:%c1":                \
+                           :"ri" ((T__)val),                           \
+-                           "i"(pda_offset(field)));                   \
++                           "i"(pda_offset(field))                     \
++                          :"memory");                                 \
+                       break;                                          \
+               default: __bad_pda_field();                             \
+               }                                                       \
+@@ -65,22 +65,22 @@
+               typeof(_proxy_pda.field) ret__;                         \
+               switch (sizeof(_proxy_pda.field)) {                     \
+               case 1:                                                 \
+-                      asm(op "b %%gs:%c1,%0"                          \
++                      asm volatile(op "b %%gs:%c1,%0"                 \
+                           : "=r" (ret__)                              \
+-                          : "i" (pda_offset(field)),                  \
+-                            "m" (_proxy_pda.field));                  \
++                          : "i" (pda_offset(field))                   \
++                          : "memory");                                \
+                       break;                                          \
+               case 2:                                                 \
+-                      asm(op "w %%gs:%c1,%0"                          \
++                      asm volatile(op "w %%gs:%c1,%0"                 \
+                           : "=r" (ret__)                              \
+-                          : "i" (pda_offset(field)),                  \
+-                            "m" (_proxy_pda.field));                  \
++                          : "i" (pda_offset(field))                   \
++                          : "memory");                                \
+                       break;                                          \
+               case 4:                                                 \
+-                      asm(op "l %%gs:%c1,%0"                          \
++                      asm volatile(op "l %%gs:%c1,%0"                 \
+                           : "=r" (ret__)                              \
+-                          : "i" (pda_offset(field)),                  \
+-                            "m" (_proxy_pda.field));                  \
++                          : "i" (pda_offset(field))                   \
++                          : "memory");                                \
+                       break;                                          \
+               default: __bad_pda_field();                             \
+               }                                                       \
This page took 0.073401 seconds and 4 git commands to generate.