]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] fix efi_memory_present_wrapper()
authorbibo,mao <bibo.mao@intel.com>
Sat, 28 Oct 2006 17:38:29 +0000 (10:38 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 28 Oct 2006 18:30:51 +0000 (11:30 -0700)
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 <bibo.mao@intel.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/setup.c

index 519e63c3c1306abb1a59b31e017d76e4e671b01d..141041dde74d0c8fe91913b445b2d68626776aed 100644 (file)
@@ -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;
 }