lkml.org 
[lkml]   [2008]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] x86: make memtest support 32bit
Date

only support max_low_pfn below...

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

---
Documentation/kernel-parameters.txt | 2 +-
arch/x86/Kconfig | 1 -
arch/x86/mm/init_32.c | 3 +++
3 files changed, 4 insertions(+), 2 deletions(-)

Index: linux-2.6/Documentation/kernel-parameters.txt
===================================================================
--- linux-2.6.orig/Documentation/kernel-parameters.txt
+++ linux-2.6/Documentation/kernel-parameters.txt
@@ -1200,7 +1200,7 @@ and is between 256 and 4096 characters.
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: linux-2.6/arch/x86/mm/init_32.c
===================================================================
--- linux-2.6.orig/arch/x86/mm/init_32.c
+++ linux-2.6/arch/x86/mm/init_32.c
@@ -844,6 +844,9 @@ unsigned long __init_refok init_memory_m
reserve_early(table_start << PAGE_SHIFT,
table_end << PAGE_SHIFT, "PGTABLE");

+ if (!after_init_bootmem)
+ early_memtest(start, end);
+
return end >> PAGE_SHIFT;
}

Index: linux-2.6/arch/x86/Kconfig
===================================================================
--- linux-2.6.orig/arch/x86/Kconfig
+++ linux-2.6/arch/x86/Kconfig
@@ -448,7 +448,6 @@ config PARAVIRT_DEBUG

config MEMTEST
bool "Memtest"
- depends on X86_64
default y
help
This option adds a kernel parameter 'memtest', which allows memtest

\
 
 \ /
  Last update: 2008-07-15 09:07    [W:0.040 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site