mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Fix inline assembler register specification (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10153).
svn path=/trunk/; revision=13587
This commit is contained in:
parent
1217e4a19d
commit
b670149976
1 changed files with 2 additions and 2 deletions
|
@ -417,13 +417,13 @@ HalQueryDisplayOwnership();
|
|||
static inline BYTE Ki386ReadFsByte(ULONG offset)
|
||||
{
|
||||
BYTE b;
|
||||
__asm__ __volatile__("movb %%fs:(%1),%0":"=g" (b):"0" (offset));
|
||||
__asm__ __volatile__("movb %%fs:(%1),%0":"=q" (b):"0" (offset));
|
||||
return b;
|
||||
}
|
||||
|
||||
static inline VOID Ki386WriteFsByte(ULONG offset, BYTE value)
|
||||
{
|
||||
__asm__ __volatile__("movb %0,%%fs:(%1)"::"r" (value), "r" (offset));
|
||||
__asm__ __volatile__("movb %0,%%fs:(%1)"::"q" (value), "r" (offset));
|
||||
}
|
||||
|
||||
#elif defined(_MSC_VER)
|
||||
|
|
Loading…
Reference in a new issue