]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: Fix vsyscall on gcc 4.5 with -Os
authorAndi Kleen <andi@firstfloor.org>
Fri, 18 Jun 2010 21:09:00 +0000 (23:09 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:29:44 +0000 (10:29 -0700)
commita6cd7a11c354c248cae71a66f4dd7c25426d662d
tree05c120f4b6ba043c1d37cd3af60f5fe3aadd7281
parent4c326ac5f38ba7858b40db7c7319ea8dd04ff862
x86: Fix vsyscall on gcc 4.5 with -Os

commit 124482935fb7fb9303c8a8ab930149c6a93d9910 upstream.

This fixes the -Os breaks with gcc 4.5 bug.  rdtsc_barrier needs to be
force inlined, otherwise user space will jump into kernel space and
kill init.

This also addresses http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44129
I believe.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
LKML-Reference: <20100618210859.GA10913@basil.fritz.box>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/system.h