]> git.baikalelectronics.ru Git - kernel.git/commit
x86: unify setup_trampoline
authorGlauber Costa <gcosta@redhat.com>
Mon, 3 Mar 2008 17:13:12 +0000 (14:13 -0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:40:57 +0000 (17:40 +0200)
commit3803af715b36ec35482cb086aecefa0a475819e1
tree6ed8d645bfdc0bdcf6b93e3ac9b618f879b3bf8b
parent8a954ce47401f9db0543d1f85c04e921abfd8fbc
x86: unify setup_trampoline

setup_trampoline() looks very similar between architectures, and this
patch unifies them. The i386 version allocates bootmem memory, while
the x86_64 version uses a fixed address.

In this patch, we initialize the global trampoline_base to the x86_64 version,
and i386 allocation can later override it.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/smpboot.c
arch/x86/kernel/smpboot_32.c
arch/x86/kernel/smpboot_64.c
include/asm-x86/smp.h
include/asm-x86/smp_64.h