mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software/libbase/memtest: Skip memtest_addr when size < 16KB.
This commit is contained in:
parent
c851e74e09
commit
43cc2ff9bb
1 changed files with 4 additions and 0 deletions
|
@ -131,6 +131,10 @@ int memtest_addr(unsigned int *addr, unsigned long size, int random)
|
|||
unsigned short seed_16;
|
||||
unsigned short rdata;
|
||||
|
||||
/* Skip when size < 16KB */
|
||||
if (size < 0x10000)
|
||||
return 0;
|
||||
|
||||
errors = 0;
|
||||
seed_16 = 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue