fix ramtest foo

Change-Id: Ib14b4258f872bbf7a7d2e4563c54b2ff49e3ca46
This commit is contained in:
Alexander Couzens 2017-10-27 19:48:28 +02:00
parent 78d34c2a38
commit 7079ee113e
2 changed files with 11 additions and 7 deletions

View File

@ -119,6 +119,13 @@ config DCACHE_RAM_MRC_VAR_SIZE
hex
default 0x0
config RAMINIT_EXTENDED_MEMTEST
bool "Run extended memtest on raminit"
default n
help
Run extended memtest over all usable memory below 4GiB.
This will delay raminit training by several seconds.
endif # USE_NATIVE_RAMINIT
if !USE_NATIVE_RAMINIT
@ -142,12 +149,6 @@ config MRC_FILE
The path and filename of the file to use as System Agent
binary.
config RAMINIT_EXTENDED_MEMTEST
bool "Run extended memtest on raminit"
default n
help
Run extended memtest over all usable memory below 4GiB.
This will delay raminit training by several seconds.
endif # !USE_NATIVE_RAMINIT

View File

@ -457,7 +457,10 @@ static void init_dram_ddr3(int mobile, int min_tck, int s3resume)
const size_t endk = (tseg_base & 0xfff00000) >> 10;
for (size_t basek = 0; basek < endk; basek += stepk)
ram_check(basek << 10, (basek + (1 << 10)) << 10);
if (!(basek << 10))
continue;
else
ram_check(basek << 10, (basek + (1 << 10)) << 10);
} else {
/* Non intrusive, fast ram check */