Navigation Menu

Skip to content

Commit

Permalink
error and pass count added to namuru memtest
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianpaul committed Sep 13, 2011
1 parent 3a4218c commit 166c9be
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions software/bios/main.c
Expand Up @@ -138,15 +138,21 @@ static void memtest1()
volatile unsigned int *count_addr = (volatile unsigned int *)0xa00003cc;
int i;
int j;
int errors = 0;
int pass = 0;
puts("Start \n");
unsigned int buf[100000];
for (i = 0; i != 100; i++)
for (j = 0; j != sizeof(buf); j++) {
buf[j] = *count_addr;
*count_addr = buf[j];
if( *count_addr != buf[j]){
printf("E.");
// printf("E. %u", *count_addr);
errors++;
}
pass++;
}
printf("Errors: %u \n", errors);
printf("Passed: %u \n", pass);
puts("Done \n");
}

Expand Down

0 comments on commit 166c9be

Please sign in to comment.