diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-26 00:51:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 07:16:01 -0400 |
commit | e7b3789524eecc96213dd69d6686efd429235051 (patch) | |
tree | 2d723f289663fdbbf49e967e50c1347f91e6d95f /arch/x86/kernel | |
parent | 042623bbabae168246ad8a37693f0ecb6c450aea (diff) |
x86: move fix mapping page table range early
do that in init_memory_mapping
also remove one init_ohci1394_dma_on_all_controllers
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/setup.c | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 161609c6925e..bf528b23750a 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -611,11 +611,6 @@ void __init setup_arch(char **cmdline_p) | |||
611 | 611 | ||
612 | #ifdef CONFIG_X86_32 | 612 | #ifdef CONFIG_X86_32 |
613 | probe_roms(); | 613 | probe_roms(); |
614 | #else | ||
615 | # ifdef CONFIG_PROVIDE_OHCI1394_DMA_INIT | ||
616 | if (init_ohci1394_dma_early) | ||
617 | init_ohci1394_dma_on_all_controllers(); | ||
618 | # endif | ||
619 | #endif | 614 | #endif |
620 | 615 | ||
621 | /* after parse_early_param, so could debug it */ | 616 | /* after parse_early_param, so could debug it */ |
@@ -672,6 +667,15 @@ void __init setup_arch(char **cmdline_p) | |||
672 | /* max_pfn_mapped is updated here */ | 667 | /* max_pfn_mapped is updated here */ |
673 | max_pfn_mapped = init_memory_mapping(0, (max_low_pfn << PAGE_SHIFT)); | 668 | max_pfn_mapped = init_memory_mapping(0, (max_low_pfn << PAGE_SHIFT)); |
674 | 669 | ||
670 | /* | ||
671 | * NOTE: On x86-32, only from this point on, fixmaps are ready for use. | ||
672 | */ | ||
673 | |||
674 | #ifdef CONFIG_PROVIDE_OHCI1394_DMA_INIT | ||
675 | if (init_ohci1394_dma_early) | ||
676 | init_ohci1394_dma_on_all_controllers(); | ||
677 | #endif | ||
678 | |||
675 | reserve_initrd(); | 679 | reserve_initrd(); |
676 | 680 | ||
677 | #ifdef CONFIG_X86_64 | 681 | #ifdef CONFIG_X86_64 |
@@ -739,15 +743,6 @@ void __init setup_arch(char **cmdline_p) | |||
739 | map_vsyscall(); | 743 | map_vsyscall(); |
740 | #endif | 744 | #endif |
741 | 745 | ||
742 | /* | ||
743 | * NOTE: On x86-32, only from this point on, fixmaps are ready for use. | ||
744 | */ | ||
745 | |||
746 | #if defined(CONFIG_PROVIDE_OHCI1394_DMA_INIT) && defined(CONFIG_X86_32) | ||
747 | if (init_ohci1394_dma_early) | ||
748 | init_ohci1394_dma_on_all_controllers(); | ||
749 | #endif | ||
750 | |||
751 | #ifdef CONFIG_X86_GENERICARCH | 746 | #ifdef CONFIG_X86_GENERICARCH |
752 | generic_apic_probe(); | 747 | generic_apic_probe(); |
753 | #endif | 748 | #endif |