diff options
author | Yinghai Lu <yhlu.kernel.send@gmail.com> | 2008-03-21 02:58:33 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:19 -0400 |
commit | 272b9cad6e7a2f61b13cfcd7dde0010e02e9376e (patch) | |
tree | ce0983f52c1a34e1b048a766812dc17607655748 /include/asm-x86/e820_64.h | |
parent | a5ae1c372dc5bbaee905bcede524d7180d22b362 (diff) |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-x86/e820_64.h b/include/asm-x86/e820_64.h index ef653a403e0b..d38820b31c1c 100644 --- a/include/asm-x86/e820_64.h +++ b/include/asm-x86/e820_64.h | |||
@@ -16,6 +16,9 @@ | |||
16 | #ifndef __ASSEMBLY__ | 16 | #ifndef __ASSEMBLY__ |
17 | extern unsigned long find_e820_area(unsigned long start, unsigned long end, | 17 | extern unsigned long find_e820_area(unsigned long start, unsigned long end, |
18 | unsigned long size, unsigned long align); | 18 | unsigned long size, unsigned long align); |
19 | extern unsigned long find_e820_area_size(unsigned long start, | ||
20 | unsigned long *sizep, | ||
21 | unsigned long align); | ||
19 | extern void add_memory_region(unsigned long start, unsigned long size, | 22 | extern void add_memory_region(unsigned long start, unsigned long size, |
20 | int type); | 23 | int type); |
21 | extern void update_memory_range(u64 start, u64 size, unsigned old_type, | 24 | extern void update_memory_range(u64 start, u64 size, unsigned old_type, |