]> git.karo-electronics.de Git - linux-beck.git/commit
x86, efi: Convert efi_phys_get_time() args to physical addresses
authorMaurice Ma <maurice.ma@intel.com>
Tue, 11 Oct 2011 10:52:13 +0000 (11:52 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 5 Dec 2011 11:45:14 +0000 (12:45 +0100)
commite9a9eca517d4cd94e816538efc400257e34bc63e
treec90b3a473e6c56c951c587f9ad1b9568e7be88dc
parent2e57ae0515124af45dd889bfbd4840fd40fcc07d
x86, efi: Convert efi_phys_get_time() args to physical addresses

Because callers of efi_phys_get_time() pass virtual stack
addresses as arguments, we need to find their corresponding
physical addresses and when calling GetTime() in physical mode.

Without this patch the following line is printed on boot,

"Oops: efitime: can't read time!"

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Matthew Garrett <mjg@redhat.com>
Link: http://lkml.kernel.org/r/1318330333-4617-1-git-send-email-matt@console-pimps.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/platform/efi/efi.c