projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e57ae0
)
x86, efi: Convert efi_phys_get_time() args to physical addresses
author
Maurice Ma
<
[email protected]
>
Tue, 11 Oct 2011 10:52:13 +0000
(11:52 +0100)
committer
Ingo Molnar
<
[email protected]
>
Mon, 5 Dec 2011 11:45:14 +0000
(12:45 +0100)
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 <
[email protected]
>
Signed-off-by: Matt Fleming <
[email protected]
>
Cc: Zhang Rui <
[email protected]
>
Cc: Matthew Garrett <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/platform/efi/efi.c
patch
|
blob
|
history
diff --git
a/arch/x86/platform/efi/efi.c
b/arch/x86/platform/efi/efi.c
index 37718f0f053d53346566c80958885f159b61dcde..d2376eb7231afdaf78acac2b227ea5e992f45df6 100644
(file)
--- a/
arch/x86/platform/efi/efi.c
+++ b/
arch/x86/platform/efi/efi.c
@@
-238,7
+238,8
@@
static efi_status_t __init phys_efi_get_time(efi_time_t *tm,
spin_lock_irqsave(&rtc_lock, flags);
efi_call_phys_prelog();
- status = efi_call_phys2(efi_phys.get_time, tm, tc);
+ status = efi_call_phys2(efi_phys.get_time, virt_to_phys(tm),
+ virt_to_phys(tc));
efi_call_phys_epilog();
spin_unlock_irqrestore(&rtc_lock, flags);
return status;