Commit a73e74a63013d0446c02d793d634c09fa5e79ab7

Authored by Aravind Kumar
1 parent 528ce56dc9
Exists in master

pfault2

Showing 2 changed files with 1 additions and 1 deletions Side-by-side Diff

memory/pagefault.c View file @ a73e74a
... ... @@ -61,7 +61,7 @@
61 61 printf("User enable regr: %x\n", i);
62 62  
63 63 j = 32;
64   - for(i = 0; i < 10000; i=i++){
  64 + for(i = 0; i < 10000; i=i+10){
65 65 asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r" (s_t));
66 66 c+= (addr1[i*4*KB]); // read at multiple of page size, so every read causes a page fault
67 67 // j = j*2;
memory/pagefault.o View file @ a73e74a

No preview for this file type