Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99922
b: refs/heads/master
c: 200001e
h: refs/heads/master
v: v3
  • Loading branch information
Paul Jackson authored and Ingo Molnar committed Jul 8, 2008
1 parent 0e7bde9 commit 56c099d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 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: 5dab8ec139be215fbaba216fb4aea914d0f4dac5
refs/heads/master: 200001eb140ea33477965f2050bea0dac801974b
3 changes: 3 additions & 0 deletions trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2150,6 +2150,9 @@ and is between 256 and 4096 characters. It is defined in the file
usbhid.mousepoll=
[USBHID] The interval which mice are to be polled at.

add_efi_memmap [EFI; x86-32,X86-64] Include EFI memory map in
kernel's map of available physical RAM.

vdso= [X86-32,SH,x86-64]
vdso=2: enable compat VDSO (default with COMPAT_VDSO)
vdso=1: enable VDSO (default)
Expand Down
4 changes: 4 additions & 0 deletions trunk/Documentation/x86/x86_64/uefi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ Mechanics:
services.
noefi turn off all EFI runtime services
reboot_type=k turn off EFI reboot runtime service
- If the EFI memory map has additional entries not in the E820 map,
you can include those entries in the kernels memory map of available
physical RAM by using the following kernel command line parameter.
add_efi_memmap include EFI memory map of available physical RAM
16 changes: 14 additions & 2 deletions trunk/arch/x86/kernel/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ static int __init setup_noefi(char *arg)
}
early_param("noefi", setup_noefi);

int add_efi_memmap;
EXPORT_SYMBOL(add_efi_memmap);

static int __init setup_add_efi_memmap(char *arg)
{
add_efi_memmap = 1;
return 0;
}
early_param("add_efi_memmap", setup_add_efi_memmap);


static efi_status_t virt_efi_get_time(efi_time_t *tm, efi_time_cap_t *tc)
{
return efi_call_virt2(get_time, tm, tc);
Expand Down Expand Up @@ -219,7 +230,7 @@ unsigned long efi_get_time(void)
* (zeropage) memory map.
*/

static void __init add_efi_memmap(void)
static void __init do_add_efi_memmap(void)
{
void *p;

Expand Down Expand Up @@ -406,7 +417,8 @@ void __init efi_init(void)
if (memmap.desc_size != sizeof(efi_memory_desc_t))
printk(KERN_WARNING "Kernel-defined memdesc"
"doesn't match the one from EFI!\n");
add_efi_memmap();
if (add_efi_memmap)
do_add_efi_memmap();

/* Setup for EFI runtime service */
reboot_type = BOOT_EFI;
Expand Down

0 comments on commit 56c099d

Please sign in to comment.