unsigned short seed_16;
unsigned int error_cnt;
+ error_cnt = 0;
+
/* test data bus */
for(i=0;i<128;i++) {
array[i] = ONEZERO;
}
- error_cnt = 0;
flush_cpu_dcache();
flush_l2_cache();
for(i=0;i<128;i++) {
for(i=0;i<128;i++) {
array[i] = ZEROONE;
}
- error_cnt = 0;
flush_cpu_dcache();
flush_l2_cache();
for(i=0;i<128;i++) {
}
seed_32 = 0;
- error_cnt = 0;
flush_cpu_dcache();
flush_l2_cache();
for(i=0;i<TEST_DATA_SIZE/4;i++) {
}
seed_16 = 0;
- error_cnt = 0;
flush_cpu_dcache();
flush_l2_cache();
for(i=0;i<TEST_ADDR_SIZE/4;i++) {
e = memtest_silent();
if(e != 0) {
- printf("Memtest failed: %d/%d words incorrect\n", e, TEST_DATA_SIZE/4 + TEST_ADDR_SIZE/4);
+ printf("Memtest failed: %d/%d words incorrect\n", e, 2*128 + TEST_DATA_SIZE/4 + TEST_ADDR_SIZE/4);
return 0;
} else {
printf("Memtest OK\n");