From: Huang Ying Date: Tue, 3 Feb 2009 06:22:48 +0000 (+0800) Subject: x86: kexec: Use one page table in x86_64 machine_kexec X-Git-Tag: v2.6.30-rc1~211^2~26^2~2^5~3^4 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5deb79679af6eb41b61112fadcda28b2a4cfb0d;p=pandora-kernel.git x86: kexec: Use one page table in x86_64 machine_kexec Impact: reduce kernel BSS size by 7 pages, improve code readability Two page tables are used in current x86_64 kexec implementation. One is used to jump from kernel virtual address to identity map address, the other is used to map all physical memory. In fact, on x86_64, there is no conflict between kernel virtual address space and physical memory space, so just one page table is sufficient. The page table pages used to map control page are dynamically allocated to save memory if kexec image is not loaded. ASM code used to map control page is replaced by C code too. Signed-off-by: Huang Ying Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed