Commit 59b1d57aa4d351c706cffdd47cb2bfb2fe8fdb61
1 parent
8c320bfab7
Exists in
master
Revert "pfpault"
This reverts commit 8c320bfab7e5f474bfbe24ebf74d7749dc606571.
Showing 2 changed files with 3 additions and 3 deletions Side-by-side Diff
memory/pagefault.c
View file @
59b1d57
... | ... | @@ -61,10 +61,10 @@ |
61 | 61 | printf("User enable regr: %x\n", i); |
62 | 62 | |
63 | 63 | j = 32; |
64 | - for(i = 0; i < 60000; i=i+10){ | |
64 | + for(i = 0; i < 100; i=i++){ | |
65 | 65 | asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r" (s_t)); |
66 | - c+= (addr1[i*4*KB]); // read at multiple of page size, so every read causes a page fault | |
67 | - // j = j*2; | |
66 | + c+= (addr1[i + j*4*KB]); // read at multiple of page size, so every read causes a page fault | |
67 | + j = j*2; | |
68 | 68 | //c = c+1; |
69 | 69 | asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r" (e_t)); |
70 | 70 | t += (e_t - s_t); |
memory/pagefault.o
View file @
59b1d57