From: Florent Kermarrec Date: Sat, 21 Mar 2015 18:26:10 +0000 (+0100) Subject: software/bios/memtest: add data bus test (0xAAAAAAAA, 0x55555555) on a small portion... X-Git-Tag: 24jan2021_ls180~2457 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b75e4b237df507d599869556dc42edc7d684829a;p=litex.git software/bios/memtest: add data bus test (0xAAAAAAAA, 0x55555555) on a small portion of the test zone. we now need to add another random addressing test to avoid linear access on L2 cache --- diff --git a/software/bios/sdram.c b/software/bios/sdram.c index 785dcde3..2ca55da6 100644 --- a/software/bios/sdram.c +++ b/software/bios/sdram.c @@ -424,6 +424,9 @@ int sdrlevel(void) #define TEST_SIZE (2*1024*1024) +#define ONEZERO 0xAAAAAAAA +#define ZEROONE 0x55555555 + int memtest_silent(void) { volatile unsigned int *array = (unsigned int *)SDRAM_BASE; @@ -431,15 +434,26 @@ int memtest_silent(void) unsigned int prv; unsigned int error_cnt; - for(i=0;i