lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1185809155.4347.20.camel@t60>
Date:	Mon, 30 Jul 2007 12:25:54 -0300
From:	Glauber de Oliveira Costa <gcosta@...hat.com>
To:	linux-kernel@...r.kernel.org, akpm@...ux-foundation.org
Subject: [PATCH] Fix msr register allocation

Since the value in ret will go through a return statement,
it does not need to be put in eax register directly. Instead,
we let the compiler do his job and choose what to do with it,
potentially getting a better register allocation.
    
Signed-off-by: Glauber de Oliveira Costa <gcosta@...hat.com>

diff --git a/include/asm-i386/msr.h b/include/asm-i386/msr.h
index df21ea0..cc4263c 100644
--- a/include/asm-i386/msr.h
+++ b/include/asm-i386/msr.h
@@ -54,7 +54,7 @@ static inline int native_write_msr_safe(unsigned int msr,
 		     "   .align 4\n\t"
 		     "   .long 	2b,3b\n\t"
 		     ".previous"
-		     : "=a" (err)
+		     : "=r" (err)
 		     : "c" (msr), "0" ((u32)val), "d" ((u32)(val>>32)),
 		       "i" (-EFAULT));
 	return err;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ