]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: enable memory tester support on 32-bit
authorYinghai Lu <yhlu.kernel@gmail.com>
Tue, 15 Jul 2008 07:03:44 +0000 (00:03 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 18 Jul 2008 12:11:58 +0000 (14:11 +0200)
only supports memory below max_low_pfn.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/kernel-parameters.txt
arch/x86/Kconfig
arch/x86/mm/init_32.c

index 09ad7450647bc81dff32a3eaf7ea3c0858f4a896..70624ddd1df35f97e359fb63f783696c7c26b7ee 100644 (file)
@@ -1206,7 +1206,7 @@ and is between 256 and 4096 characters. It is defined in the file
                                 or
                                 memmap=0x10000$0x18690000
 
-       memtest=        [KNL,X86_64] Enable memtest
+       memtest=        [KNL,X86] Enable memtest
                        Format: <integer>
                        range: 0,4 : pattern number
                        default : 0 <disable>
index 96e0c2ebc3885713a5d6290f5e8eb959d0d0d36e..03980cb042916c6f37bd131c1d43553f51c8ade6 100644 (file)
@@ -447,7 +447,6 @@ config PARAVIRT_DEBUG
 
 config MEMTEST
        bool "Memtest"
-       depends on X86_64
        help
          This option adds a kernel parameter 'memtest', which allows memtest
          to be set.
index 9689a5138e6472e33c6d0862b3ae56194ffcedb4..3eeab6d0065ffa52d0945d349bb755fd4ce5f8ab 100644 (file)
@@ -844,6 +844,9 @@ unsigned long __init_refok init_memory_mapping(unsigned long start,
                reserve_early(table_start << PAGE_SHIFT,
                                 table_end << PAGE_SHIFT, "PGTABLE");
 
+       if (!after_init_bootmem)
+               early_memtest(start, end);
+
        return end >> PAGE_SHIFT;
 }