From: Huang, Ying Date: Wed, 13 Feb 2008 09:22:41 +0000 (+0800) Subject: x86: EFI runtime code mapping enhancement X-Git-Tag: v2.6.25-rc2~74^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4de0d4a6d173351b023ab2855c3d331146a418e5;p=pandora-kernel.git x86: EFI runtime code mapping enhancement This patch enhances EFI runtime code memory mapping as following: - Move __supported_pte_mask & _PAGE_NX checking before invoking runtime_code_page_mkexec(). This makes it possible for compiler to eliminate runtime_code_page_mkexec() on machine without NX support. - Use set_memory_x/nx in early_mapping_set_exec(). This eliminates the duplicated implementation. This patch has been tested on Intel x86_64 platform with EFI64/32 firmware. Signed-off-by: Huang Ying Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed