mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
x86: enable memory tester support on 32-bit
only supports memory below max_low_pfn. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
1f067167a8
commit
caadbdce24
3 changed files with 4 additions and 2 deletions
|
@ -1206,7 +1206,7 @@ and is between 256 and 4096 characters. It is defined in the file
|
||||||
or
|
or
|
||||||
memmap=0x10000$0x18690000
|
memmap=0x10000$0x18690000
|
||||||
|
|
||||||
memtest= [KNL,X86_64] Enable memtest
|
memtest= [KNL,X86] Enable memtest
|
||||||
Format: <integer>
|
Format: <integer>
|
||||||
range: 0,4 : pattern number
|
range: 0,4 : pattern number
|
||||||
default : 0 <disable>
|
default : 0 <disable>
|
||||||
|
|
|
@ -447,7 +447,6 @@ config PARAVIRT_DEBUG
|
||||||
|
|
||||||
config MEMTEST
|
config MEMTEST
|
||||||
bool "Memtest"
|
bool "Memtest"
|
||||||
depends on X86_64
|
|
||||||
help
|
help
|
||||||
This option adds a kernel parameter 'memtest', which allows memtest
|
This option adds a kernel parameter 'memtest', which allows memtest
|
||||||
to be set.
|
to be set.
|
||||||
|
|
|
@ -844,6 +844,9 @@ unsigned long __init_refok init_memory_mapping(unsigned long start,
|
||||||
reserve_early(table_start << PAGE_SHIFT,
|
reserve_early(table_start << PAGE_SHIFT,
|
||||||
table_end << PAGE_SHIFT, "PGTABLE");
|
table_end << PAGE_SHIFT, "PGTABLE");
|
||||||
|
|
||||||
|
if (!after_init_bootmem)
|
||||||
|
early_memtest(start, end);
|
||||||
|
|
||||||
return end >> PAGE_SHIFT;
|
return end >> PAGE_SHIFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue