• Huang Ying's avatar
    kexec/i386: allocate page table pages dynamically · 92be3d6b
    Huang Ying authored
    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: default avatarHuang Ying <ying.huang@intel.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    92be3d6b
machine_kexec_32.c 6.2 KB