lkml.org 
[lkml]   [2008]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] x86: setup_arch 64bit move efi_init calling early
Date


Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

---
arch/x86/kernel/setup_32.c | 32 ++++++++++++++++++--------------
arch/x86/kernel/setup_64.c | 14 +++++++-------
2 files changed, 25 insertions(+), 21 deletions(-)

Index: linux-2.6/arch/x86/kernel/setup_64.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/setup_64.c
+++ linux-2.6/arch/x86/kernel/setup_64.c
@@ -260,6 +260,9 @@ void __init setup_arch(char **cmdline_p)
insert_resource(&iomem_resource, &data_resource);
insert_resource(&iomem_resource, &bss_resource);

+ if (efi_enabled)
+ efi_init();
+
early_gart_iommu_check();

e820_register_active_regions(0, 0, -1UL);
@@ -286,8 +289,6 @@ void __init setup_arch(char **cmdline_p)
check_efer();

max_pfn_mapped = init_memory_mapping(0, (end_pfn << PAGE_SHIFT));
- if (efi_enabled)
- efi_init();

vsmp_init();


\
 
 \ /
  Last update: 2008-06-24 04:57    [W:0.095 / U:73.908 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site