summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/e820_64.h
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel.send@gmail.com>2008-03-20 23:58:33 -0700
committerIngo Molnar <mingo@elte.hu>2008-04-17 17:41:19 +0200
commit272b9cad6e7a2f61b13cfcd7dde0010e02e9376e (patch)
treece0983f52c1a34e1b048a766812dc17607655748 /include/asm-x86/e820_64.h
parenta5ae1c372dc5bbaee905bcede524d7180d22b362 (diff)
downloadop-kernel-dev-272b9cad6e7a2f61b13cfcd7dde0010e02e9376e.zip
op-kernel-dev-272b9cad6e7a2f61b13cfcd7dde0010e02e9376e.tar.gz
x86: early memtest to find bad ram
do simple memtest after init_memory_mapping use find_e820_area_size to find all ram range that is not reserved. and do some simple bits test to find some bad ram. if find some bad ram, use reserve_early to exclude that range. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/e820_64.h')
-rw-r--r--include/asm-x86/e820_64.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-x86/e820_64.h b/include/asm-x86/e820_64.h
index ef653a4..d38820b 100644
--- a/include/asm-x86/e820_64.h
+++ b/include/asm-x86/e820_64.h
@@ -16,6 +16,9 @@
#ifndef __ASSEMBLY__
extern unsigned long find_e820_area(unsigned long start, unsigned long end,
unsigned long size, unsigned long align);
+extern unsigned long find_e820_area_size(unsigned long start,
+ unsigned long *sizep,
+ unsigned long align);
extern void add_memory_region(unsigned long start, unsigned long size,
int type);
extern void update_memory_range(u64 start, u64 size, unsigned old_type,
OpenPOWER on IntegriCloud