patch by kjk::hyperion, fix syntax of gcc inline asm
authorRoyce Mitchell III <royce3@ev1.net>
Wed, 6 Apr 2005 04:03:41 +0000 (04:03 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Wed, 6 Apr 2005 04:03:41 +0000 (04:03 +0000)
svn path=/trunk/; revision=14523

reactos/hal/halx86/include/hal.h

index 8755508..18c9195 100644 (file)
@@ -419,13 +419,13 @@ HalQueryDisplayOwnership();
 static inline BYTE Ki386ReadFsByte(ULONG offset)
 {
    BYTE b;
-   __asm__ __volatile__("movb %%fs:(%1),%0":"=q" (b):"0" (offset));
+   __asm__ __volatile__("movb %%fs:(%1),%0":"=r" (b):"r" (offset));
    return b;
 }
 
 static inline VOID Ki386WriteFsByte(ULONG offset, BYTE value)
 {
-    __asm__ __volatile__("movb %0,%%fs:(%1)"::"q" (value), "r" (offset));
+   __asm__ __volatile__("movb %0,%%fs:(%1)"::"r" (value), "r" (offset));
 }
 
 #elif defined(_MSC_VER)