Commit 528ce56dc92a847670e6cffe2f9a2928469f633f
1 parent
3ee006f35d
Exists in
master
pfault
Showing 2 changed files with 1 additions and 1 deletions Side-by-side Diff
memory/pagefault.c
View file @
528ce56
... | ... | @@ -63,7 +63,7 @@ |
63 | 63 | j = 32; |
64 | 64 | for(i = 0; i < 10000; i=i++){ |
65 | 65 | asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r" (s_t)); |
66 | - c+= (addr1[i + j*4*KB]); // read at multiple of page size, so every read causes a page fault | |
66 | + c+= (addr1[i*4*KB]); // read at multiple of page size, so every read causes a page fault | |
67 | 67 | // j = j*2; |
68 | 68 | //c = c+1; |
69 | 69 | asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r" (e_t)); |
memory/pagefault.o
View file @
528ce56
-
mentioned in commit 7ab888