Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80557
b: refs/heads/master
c: a382806
h: refs/heads/master
i:
  80555: b3e5963
v: v3
  • Loading branch information
Huang, Ying authored and Ingo Molnar committed Jan 30, 2008
1 parent 86381cd commit 1e0b983
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 30 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bed23c67fe077b4d66cb3329263d7cfa33b3fd67
refs/heads/master: a3828064be4ed8e95907d3943e7af13cb709694d
2 changes: 2 additions & 0 deletions trunk/arch/x86/kernel/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ void __init efi_enter_virtual_mode(void)
efi.reset_system = virt_efi_reset_system;
efi.set_virtual_address_map = virt_efi_set_virtual_address_map;
runtime_code_page_mkexec();
early_iounmap(memmap.map, memmap.nr_map * memmap.desc_size);
memmap.map = NULL;
}

/*
Expand Down
15 changes: 0 additions & 15 deletions trunk/arch/x86/kernel/efi_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,3 @@ void efi_call_phys_epilog(void)

local_irq_restore(efi_rt_eflags);
}

/*
* We need to map the EFI memory map again after paging_init().
*/
void __init efi_map_memmap(void)
{
memmap.map = NULL;

memmap.map = early_ioremap((unsigned long) memmap.phys_map,
(memmap.nr_map * memmap.desc_size));
if (memmap.map == NULL)
printk(KERN_ERR "Could not remap the EFI memmap!\n");

memmap.map_end = memmap.map + (memmap.nr_map * memmap.desc_size);
}
9 changes: 0 additions & 9 deletions trunk/arch/x86/kernel/efi_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,6 @@ void __init efi_call_phys_epilog(void)
local_irq_restore(efi_flags);
}

/*
* We need to map the EFI memory map again after init_memory_mapping().
*/
void __init efi_map_memmap(void)
{
memmap.map = __va(memmap.phys_map);
memmap.map_end = memmap.map + (memmap.nr_map * memmap.desc_size);
}

void __init efi_reserve_bootmem(void)
{
reserve_bootmem_generic((unsigned long)memmap.phys_map,
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/x86/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,6 @@ void __init setup_arch(char **cmdline_p)
#ifdef CONFIG_X86_GENERICARCH
generic_apic_probe();
#endif
if (efi_enabled)
efi_map_memmap();

#ifdef CONFIG_ACPI
/*
Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/x86/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,8 @@ void __init setup_arch(char **cmdline_p)
acpi_reserve_bootmem();
#endif

if (efi_enabled) {
efi_map_memmap();
if (efi_enabled)
efi_reserve_bootmem();
}

/*
* Find and reserve possible boot-time SMP configuration:
Expand Down

0 comments on commit 1e0b983

Please sign in to comment.