Commit 8c320bfab7e5f474bfbe24ebf74d7749dc606571

Authored by Aravind Kumar
1 parent 7aa719c155
Exists in master

pfpault

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

memory/pagefault.c View file @ 8c320bf
... ... @@ -61,10 +61,10 @@
61 61 printf("User enable regr: %x\n", i);
62 62  
63 63 j = 32;
64   - for(i = 0; i < 100; i=i++){
  64 + for(i = 0; i < 60000; i=i+10){
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
67   - j = j*2;
  66 + c+= (addr1[i*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 @ 8c320bf

No preview for this file type