x86: change static allocation of trampoline area
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 7 Dec 2008 23:50:22 +0000 (00:50 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 8 Dec 2008 12:49:45 +0000 (13:49 +0100)
commit3e1e9002aa8b32bd4c95ac6c8fad376b7a8127fb
treef9cee272743423033e78d283955aa7c493691a2d
parent218d11a8b071b23b76c484fd5f72a4fe3306801e
x86: change static allocation of trampoline area

Impact: fix trampoline sizing bug, save space

While debugging a suspend-to-RAM related issue it occured to me that
if the trampoline code had grown past 4 KB, we would have been
allocating too little memory for it, since the 4 KB size of the
trampoline is hardcoded into arch/x86/kernel/e820.c .  Change that
by making the kernel compute the trampoline size and allocate as much
memory as necessary.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/trampoline.h
arch/x86/kernel/e820.c
arch/x86/kernel/head32.c
arch/x86/kernel/head64.c
arch/x86/kernel/trampoline.c