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>] [day] [month] [year] [list]
Message-ID: <452C3D36.7020306@goop.org>
Date:	Tue, 10 Oct 2006 17:39:18 -0700
From:	Jeremy Fitzhardinge <jeremy@...p.org>
To:	Andrew Morton <akpm@...l.org>
CC:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Stas Sergeev <stsp@...et.ru>, Zachary Amsden <zach@...are.com>,
	Chuck Ebbert <76306.1226@...puserve.com>,
	Jan Beulich <jbeulich@...ell.com>, Andi Kleen <ak@...e.de>
Subject: [PATCH 2.6.19-rc1-mm1] espfix Use scaling addressing mode rather
 than shifting in PER_CPU

Use the x86 scaling addressing mode rather than shifting to
multiplying by 4 in PER_CPU().

Signed-off-by: Jeremy Fitzhardinge <jeremy@...p.org>
Cc: Andrew Morton <akpm@...l.org>
Cc: Stas Sergeev <stsp@...et.ru>
Cc: Zachary Amsden <zach@...are.com>
Cc: Chuck Ebbert <76306.1226@...puserve.com>
Cc: Jan Beulich <jbeulich@...ell.com>
Cc: Andi Kleen <ak@....de>

diff -r ea4549dd86a4 include/asm-i386/percpu.h
--- a/include/asm-i386/percpu.h	Tue Oct 10 16:36:02 2006 -0700
+++ b/include/asm-i386/percpu.h	Tue Oct 10 16:37:59 2006 -0700
@@ -19,8 +19,7 @@
  */
 #ifdef CONFIG_SMP
 #define PER_CPU(var, cpu) \
-	shll $2, cpu; \
-	movl __per_cpu_offset(cpu), cpu; \
+	movl __per_cpu_offset(,cpu,4), cpu;	\
 	addl $per_cpu__/**/var, cpu;
 #else /* ! SMP */
 #define PER_CPU(var, cpu) \


-
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