• H
    kexec/i386: allocate page table pages dynamically · 92be3d6b
    Huang Ying 提交于
    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: NHuang Ying <ying.huang@intel.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    92be3d6b
kexec.h 6.5 KB