kexec/i386: allocate page table pages dynamically
authorHuang Ying <ying.huang@intel.com>
Fri, 31 Oct 2008 01:48:08 +0000 (09:48 +0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 31 Oct 2008 09:01:56 +0000 (10:01 +0100)
Impact: save .text size when kexec is built in but not loaded

This patch adds an architecture specific struct kimage_arch into
struct kimage. The pointers to page table pages used by kexec are
added to struct kimage_arch. The page tables pages are dynamically
allocated in machine_kexec_prepare instead of statically from BSS
segment. This will save up to 20k memory when kexec image is not
loaded.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found