]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix some bugs about EFI runtime code mapping
authorHuang, Ying <ying.huang@intel.com>
Wed, 30 Jan 2008 12:33:55 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:55 +0000 (13:33 +0100)
commit2a0077de9026ede6a9667d9a0313c6de503a6623
treef2430abad9fd9417653a3a2faa472d9df0c308bd
parent59737bc7f6437fab53cf3ecd54ab4d2334262e5c
x86: fix some bugs about EFI runtime code mapping

This patch fixes some bugs of making EFI runtime code executable.

- Use change_page_attr in i386 too. Because the runtime code may be
  mapped not through ioremap.

- If there is no _PAGE_NX in __supported_pte_mask, the change_page_attr
  is not called.

- Make efi_ioremap map pages as PAGE_KERNEL_EXEC_NOCACHE, because EFI runtime
  code may be mapped through efi_ioremap.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/efi.c
arch/x86/kernel/efi_64.c
include/asm-x86/efi.h