[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090213145735.GE13000@alberich.amd.com>
Date: Fri, 13 Feb 2009 15:57:35 +0100
From: Andreas Herrmann <andreas.herrmann3@....com>
To: Ingo Molnar <mingo@...e.hu>, Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>
CC: linux-kernel@...r.kernel.org
Subject: [PATCH 5/7] x86: memtest: add additional (silly) test patterns
Signed-off-by: Andreas Herrmann <andreas.herrmann3@....com>
---
arch/x86/mm/memtest.c | 22 ++++++++++++++++------
1 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/arch/x86/mm/memtest.c b/arch/x86/mm/memtest.c
index 54c143b..e3e986d 100644
--- a/arch/x86/mm/memtest.c
+++ b/arch/x86/mm/memtest.c
@@ -9,15 +9,25 @@
#include <asm/e820.h>
+#ifdef CONFIG_X86_64
+#define _regular_pattern(p) 0x##p##p##p##p##p##p##p##p##UL
+#else
+#define _regular_pattern(p) 0x##p##p##p##p##UL
+#endif
+
static unsigned long patterns[] = {
- 0UL,
- -1UL,
+ _regular_pattern(00),_regular_pattern(ff),
+ _regular_pattern(55),_regular_pattern(aa),
+ _regular_pattern(11),_regular_pattern(22),
+ _regular_pattern(44),_regular_pattern(88),
+ _regular_pattern(33),_regular_pattern(66),
+ _regular_pattern(99),_regular_pattern(cc),
+ _regular_pattern(77),_regular_pattern(bb),
+ _regular_pattern(dd),_regular_pattern(ee),
#ifdef CONFIG_X86_64
- 0x5555555555555555UL,
- 0xaaaaaaaaaaaaaaaaUL,
+ 0x7a6c7258554e494cUL, /* 64-bit only ;-) */
#else
- 0x55555555UL,
- 0xaaaaaaaaUL,
+ 0xefbeadde,
#endif
};
--
1.6.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists