diff options
author | Huang, Ying <ying.huang@intel.com> | 2008-01-30 07:33:44 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:44 -0500 |
commit | 0947b2f31ca1ea1211d3cde2dbd8fcec579ef395 (patch) | |
tree | 557cfdb5610e98609eaa02453ed23a8994fd1f2d /arch/x86/mm/init_32.c | |
parent | 4138cc3418f5eaa7524ff8e927102863f1ba0ea5 (diff) |
i386 boot: replace boot_ioremap with enhanced bt_ioremap - enhance bt_ioremap
This patch makes it possible for bt_ioremap() to be used before
paging_init(), via providing an early implementation of set_fixmap()
that can be used before paging_init().
This way boot_ioremap() can be replaced by bt_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>
Diffstat (limited to 'arch/x86/mm/init_32.c')
-rw-r--r-- | arch/x86/mm/init_32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index 206e3f6800b9..f4e1894367a6 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -429,9 +429,11 @@ static void __init pagetable_init (void) | |||
429 | * Fixed mappings, only the page table structure has to be | 429 | * Fixed mappings, only the page table structure has to be |
430 | * created - mappings will be set by set_fixmap(): | 430 | * created - mappings will be set by set_fixmap(): |
431 | */ | 431 | */ |
432 | bt_ioremap_clear(); | ||
432 | vaddr = __fix_to_virt(__end_of_fixed_addresses - 1) & PMD_MASK; | 433 | vaddr = __fix_to_virt(__end_of_fixed_addresses - 1) & PMD_MASK; |
433 | end = (FIXADDR_TOP + PMD_SIZE - 1) & PMD_MASK; | 434 | end = (FIXADDR_TOP + PMD_SIZE - 1) & PMD_MASK; |
434 | page_table_range_init(vaddr, end, pgd_base); | 435 | page_table_range_init(vaddr, end, pgd_base); |
436 | bt_ioremap_reset(); | ||
435 | 437 | ||
436 | permanent_kmaps_init(pgd_base); | 438 | permanent_kmaps_init(pgd_base); |
437 | 439 | ||