Workaround for GCC inline assembly bug, hopefully fixed for good. Builds for me in...
authorKJK::Hyperion <hackbunny@reactos.org>
Sat, 28 May 2005 15:41:09 +0000 (15:41 +0000)
committerKJK::Hyperion <hackbunny@reactos.org>
Sat, 28 May 2005 15:41:09 +0000 (15:41 +0000)
Bug details and status here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10153

svn path=/trunk/; revision=15584

reactos/hal/halx86/include/hal.h

index 18c9195..bbda83f 100644 (file)
@@ -419,7 +419,7 @@ HalQueryDisplayOwnership();
 static inline BYTE Ki386ReadFsByte(ULONG offset)
 {
    BYTE b;
-   __asm__ __volatile__("movb %%fs:(%1),%0":"=r" (b):"r" (offset));
+   __asm__ __volatile__("movb %%fs:(%1),%0":"=q" (b):"r" (offset));
    return b;
 }