summaryrefslogtreecommitdiffstats
path: root/common/cmd_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_mem.c')
-rw-r--r--common/cmd_mem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c
index 3e225988bb..3918678140 100644
--- a/common/cmd_mem.c
+++ b/common/cmd_mem.c
@@ -555,7 +555,11 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
vu_long temp;
vu_long anti_pattern;
vu_long num_words;
+#if defined(CFG_MEMTEST_SCRATCH)
+ vu_long *dummy = (vu_long*)CFG_MEMTEST_SCRATCH;
+#else
vu_long *dummy = NULL;
+#endif
int j;
int iterations = 1;
OpenPOWER on IntegriCloud