File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -456,11 +456,12 @@ int memtest_silent(void)
456
456
unsigned short seed_16 ;
457
457
unsigned int error_cnt ;
458
458
459
+ error_cnt = 0 ;
460
+
459
461
/* test data bus */
460
462
for (i = 0 ;i < 128 ;i ++ ) {
461
463
array [i ] = ONEZERO ;
462
464
}
463
- error_cnt = 0 ;
464
465
flush_cpu_dcache ();
465
466
flush_l2_cache ();
466
467
for (i = 0 ;i < 128 ;i ++ ) {
@@ -471,7 +472,6 @@ int memtest_silent(void)
471
472
for (i = 0 ;i < 128 ;i ++ ) {
472
473
array [i ] = ZEROONE ;
473
474
}
474
- error_cnt = 0 ;
475
475
flush_cpu_dcache ();
476
476
flush_l2_cache ();
477
477
for (i = 0 ;i < 128 ;i ++ ) {
@@ -487,7 +487,6 @@ int memtest_silent(void)
487
487
}
488
488
489
489
seed_32 = 0 ;
490
- error_cnt = 0 ;
491
490
flush_cpu_dcache ();
492
491
flush_l2_cache ();
493
492
for (i = 0 ;i < TEST_DATA_SIZE /4 ;i ++ ) {
@@ -504,7 +503,6 @@ int memtest_silent(void)
504
503
}
505
504
506
505
seed_16 = 0 ;
507
- error_cnt = 0 ;
508
506
flush_cpu_dcache ();
509
507
flush_l2_cache ();
510
508
for (i = 0 ;i < TEST_ADDR_SIZE /4 ;i ++ ) {
@@ -522,7 +520,7 @@ int memtest(void)
522
520
523
521
e = memtest_silent ();
524
522
if (e != 0 ) {
525
- printf ("Memtest failed: %d/%d words incorrect\n" , e , TEST_DATA_SIZE /4 + TEST_ADDR_SIZE /4 );
523
+ printf ("Memtest failed: %d/%d words incorrect\n" , e , 2 * 128 + TEST_DATA_SIZE /4 + TEST_ADDR_SIZE /4 );
526
524
return 0 ;
527
525
} else {
528
526
printf ("Memtest OK\n" );
You can’t perform that action at this time.
0 commit comments