From 230d01477441b085b94d57c825e849dc19dc0099 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 3 Sep 2008 00:49:04 +0000 Subject: [PATCH] "fix" Ke386SaveFlags and Ke386RestoreFlags svn path=/branches/ros-amd64-bringup/; revision=35903 --- reactos/ntoskrnl/include/internal/amd64/intrin_i.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/include/internal/amd64/intrin_i.h b/reactos/ntoskrnl/include/internal/amd64/intrin_i.h index 2af9056f3f1..9eae07d6ea8 100644 --- a/reactos/ntoskrnl/include/internal/amd64/intrin_i.h +++ b/reactos/ntoskrnl/include/internal/amd64/intrin_i.h @@ -68,8 +68,8 @@ static __inline__ __attribute__((always_inline)) void __str(unsigned short *Dest : /* no outputs */ \ : "m" (X)); -#define Ke386SaveFlags(x) __asm__ __volatile__("pushfq ; popq %0":"=g" (x): /* no input */) -#define Ke386RestoreFlags(x) __asm__ __volatile__("pushq %0 ; popfq": /* no output */ :"g" (x):"memory") +#define Ke386SaveFlags(x) __asm__ __volatile__("pushfq ; popq %0":"=rm" (x): /* no input */) +#define Ke386RestoreFlags(x) __asm__ __volatile__("pushq %0 ; popfq": /* no output */ :"irm" (x):"memory") #define _Ke386GetSeg(N) ({ \ unsigned int __d; \