patch by kjk::hyperion, fix syntax of gcc inline asm
Modified: trunk/reactos/hal/halx86/include/hal.h
_____
Modified: trunk/reactos/hal/halx86/include/hal.h
--- trunk/reactos/hal/halx86/include/hal.h 2005-04-05 23:04:24 UTC
(rev 14522)
+++ trunk/reactos/hal/halx86/include/hal.h 2005-04-06 04:03:41 UTC
(rev 14523)
@@ -419,13 +419,13 @@
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)
Show replies by date