Merge commit 'v2.6.36-rc3' into x86/memblock
Conflicts: arch/x86/kernel/trampoline.c mm/memblock.c Merge reason: Resolve the conflicts, update to latest upstream. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <linux/memblock.h>
|
||||
|
||||
#include <asm/trampoline.h>
|
||||
#include <asm/pgtable.h>
|
||||
|
||||
#if defined(CONFIG_X86_64) && defined(CONFIG_ACPI_SLEEP)
|
||||
#define __trampinit
|
||||
@@ -37,3 +38,20 @@ unsigned long __trampinit setup_trampoline(void)
|
||||
memcpy(trampoline_base, trampoline_data, TRAMPOLINE_SIZE);
|
||||
return virt_to_phys(trampoline_base);
|
||||
}
|
||||
|
||||
void __init setup_trampoline_page_table(void)
|
||||
{
|
||||
#ifdef CONFIG_X86_32
|
||||
/* Copy kernel address range */
|
||||
clone_pgd_range(trampoline_pg_dir + KERNEL_PGD_BOUNDARY,
|
||||
swapper_pg_dir + KERNEL_PGD_BOUNDARY,
|
||||
min_t(unsigned long, KERNEL_PGD_PTRS,
|
||||
KERNEL_PGD_BOUNDARY));
|
||||
|
||||
/* Initialize low mappings */
|
||||
clone_pgd_range(trampoline_pg_dir,
|
||||
swapper_pg_dir + KERNEL_PGD_BOUNDARY,
|
||||
min_t(unsigned long, KERNEL_PGD_PTRS,
|
||||
KERNEL_PGD_BOUNDARY));
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user