From: bibo,mao Date: Sat, 28 Oct 2006 17:38:29 +0000 (-0700) Subject: [PATCH] fix efi_memory_present_wrapper() X-Git-Tag: v3.12-rc1~32144^2~7^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae74589cb381cc2838107f92d4e0e1f178c6825d;p=kernel%2Fkernel-generic.git [PATCH] fix efi_memory_present_wrapper() efi_memory_present_wrapper() parameter start/end is physical address, but function memory_present parameter is PFN, this patch converts physical address to PFN. Signed-off-by: bibo, mao Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c index 519e63c..141041d 100644 --- a/arch/i386/kernel/setup.c +++ b/arch/i386/kernel/setup.c @@ -846,7 +846,7 @@ efi_find_max_pfn(unsigned long start, unsigned long end, void *arg) static int __init efi_memory_present_wrapper(unsigned long start, unsigned long end, void *arg) { - memory_present(0, start, end); + memory_present(0, PFN_UP(start), PFN_DOWN(end)); return 0; }