summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorbibo,mao <bibo.mao@intel.com>2006-10-28 19:38:29 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-28 20:30:51 +0200
commitae74589cb381cc2838107f92d4e0e1f178c6825d (patch)
treed79b985d09acb66c98890733a758b37f41062233 /arch
parent[PATCH] jbd2: journal_dirty_data re-check for unmapped buffers (diff)
downloadlinux-ae74589cb381cc2838107f92d4e0e1f178c6825d.tar.xz
linux-ae74589cb381cc2838107f92d4e0e1f178c6825d.zip
[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 <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>
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c
index 519e63c3c130..141041dde74d 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;
}