Let the compiler choose register placing. All we care is that "trap" value gets retained.
Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]> Index: kvm.first/arch/x86/kernel/kvm.c =================================================================== --- kvm.first.orig/arch/x86/kernel/kvm.c +++ kvm.first/arch/x86/kernel/kvm.c @@ -138,7 +138,7 @@ static void kvm_write_cr3(unsigned long _ASM_EXTABLE(0b, 2b) : "=&r" (trap) : "n" (1UL), "n" (0UL), - "b" (cache->entry[idx].host_cr3), + "r" (cache->entry[idx].host_cr3), "m" (__force_order)); if (!trap) goto out; -- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel