PGSIZE 62 kernel/exec.c if(ph.vaddr % PGSIZE != 0) PGSIZE 83 kernel/exec.c if((sz1 = uvmalloc(pagetable, sz, sz + (USERSTACK+1)*PGSIZE, PTE_W)) == 0) PGSIZE 86 kernel/exec.c uvmclear(pagetable, sz-(USERSTACK+1)*PGSIZE); PGSIZE 88 kernel/exec.c stackbase = sp - USERSTACK*PGSIZE; PGSIZE 153 kernel/exec.c for(i = 0; i < sz; i += PGSIZE){ PGSIZE 157 kernel/exec.c if(sz - i < PGSIZE) PGSIZE 160 kernel/exec.c n = PGSIZE; PGSIZE 38 kernel/kalloc.c for(; p + PGSIZE <= (char*)pa_end; p += PGSIZE) PGSIZE 51 kernel/kalloc.c if(((uint64)pa % PGSIZE) != 0 || (char*)pa < end || (uint64)pa >= PHYSTOP) PGSIZE 55 kernel/kalloc.c memset(pa, 1, PGSIZE); PGSIZE 80 kernel/kalloc.c memset((char*)r, 5, PGSIZE); // fill with junk PGSIZE 44 kernel/memlayout.h #define TRAMPOLINE (MAXVA - PGSIZE) PGSIZE 48 kernel/memlayout.h #define KSTACK(p) (TRAMPOLINE - ((p)+1)* 2*PGSIZE) PGSIZE 59 kernel/memlayout.h #define TRAPFRAME (TRAMPOLINE - PGSIZE) PGSIZE 42 kernel/proc.c kvmmap(kpgtbl, va, (uint64)pa, PGSIZE, PTE_R | PTE_W); PGSIZE 147 kernel/proc.c p->context.sp = p->kstack + PGSIZE; PGSIZE 190 kernel/proc.c if(mappages(pagetable, TRAMPOLINE, PGSIZE, PGSIZE 198 kernel/proc.c if(mappages(pagetable, TRAPFRAME, PGSIZE, PGSIZE 243 kernel/proc.c p->sz = PGSIZE; PGSIZE 247 kernel/proc.c p->trapframe->sp = PGSIZE; // user stack pointer PGSIZE 357 kernel/riscv.h #define PGROUNDUP(sz) (((sz)+PGSIZE-1) & ~(PGSIZE-1)) PGSIZE 358 kernel/riscv.h #define PGROUNDDOWN(a) (((a)) & ~(PGSIZE-1)) PGSIZE 460 kernel/sysfile.c if(fetchstr(uarg, argv[i], PGSIZE) < 0) PGSIZE 106 kernel/trap.c p->trapframe->kernel_sp = p->kstack + PGSIZE; // process's kernel stack PGSIZE 126 kernel/virtio_disk.c memset(disk.desc, 0, PGSIZE); PGSIZE 127 kernel/virtio_disk.c memset(disk.avail, 0, PGSIZE); PGSIZE 128 kernel/virtio_disk.c memset(disk.used, 0, PGSIZE); PGSIZE 25 kernel/vm.c memset(kpgtbl, 0, PGSIZE); PGSIZE 28 kernel/vm.c kvmmap(kpgtbl, UART0, UART0, PGSIZE, PTE_R | PTE_W); PGSIZE 31 kernel/vm.c kvmmap(kpgtbl, VIRTIO0, VIRTIO0, PGSIZE, PTE_R | PTE_W); PGSIZE 44 kernel/vm.c kvmmap(kpgtbl, TRAMPOLINE, (uint64)trampoline, PGSIZE, PTE_R | PTE_X); PGSIZE 98 kernel/vm.c memset(pagetable, 0, PGSIZE); PGSIZE 149 kernel/vm.c if((va % PGSIZE) != 0) PGSIZE 152 kernel/vm.c if((size % PGSIZE) != 0) PGSIZE 159 kernel/vm.c last = va + size - PGSIZE; PGSIZE 168 kernel/vm.c a += PGSIZE; PGSIZE 169 kernel/vm.c pa += PGSIZE; PGSIZE 183 kernel/vm.c if((va % PGSIZE) != 0) PGSIZE 186 kernel/vm.c for(a = va; a < va + npages*PGSIZE; a += PGSIZE){ PGSIZE 210 kernel/vm.c memset(pagetable, 0, PGSIZE); PGSIZE 222 kernel/vm.c if(sz >= PGSIZE) PGSIZE 225 kernel/vm.c memset(mem, 0, PGSIZE); PGSIZE 226 kernel/vm.c mappages(pagetable, 0, PGSIZE, (uint64)mem, PTE_W|PTE_R|PTE_X|PTE_U); PGSIZE 242 kernel/vm.c for(a = oldsz; a < newsz; a += PGSIZE){ PGSIZE 248 kernel/vm.c memset(mem, 0, PGSIZE); PGSIZE 249 kernel/vm.c if(mappages(pagetable, a, PGSIZE, (uint64)mem, PTE_R|PTE_U|xperm) != 0){ PGSIZE 269 kernel/vm.c int npages = (PGROUNDUP(oldsz) - PGROUNDUP(newsz)) / PGSIZE; PGSIZE 302 kernel/vm.c uvmunmap(pagetable, 0, PGROUNDUP(sz)/PGSIZE, 1); PGSIZE 320 kernel/vm.c for(i = 0; i < sz; i += PGSIZE){ PGSIZE 329 kernel/vm.c memmove(mem, (char*)pa, PGSIZE); PGSIZE 330 kernel/vm.c if(mappages(new, i, PGSIZE, (uint64)mem, flags) != 0){ PGSIZE 338 kernel/vm.c uvmunmap(new, 0, i / PGSIZE, 1); PGSIZE 373 kernel/vm.c n = PGSIZE - (dstva - va0); PGSIZE 380 kernel/vm.c dstva = va0 + PGSIZE; PGSIZE 398 kernel/vm.c n = PGSIZE - (srcva - va0); PGSIZE 405 kernel/vm.c srcva = va0 + PGSIZE; PGSIZE 425 kernel/vm.c n = PGSIZE - (srcva - va0); PGSIZE 444 kernel/vm.c srcva = va0 + PGSIZE; PGSIZE 179 user/usertests.c static char big[PGSIZE+1]; PGSIZE 180 user/usertests.c for(int i = 0; i < PGSIZE; i++) PGSIZE 182 user/usertests.c big[PGSIZE] = '\0'; PGSIZE 206 user/usertests.c if((top % PGSIZE) != 0){ PGSIZE 207 user/usertests.c sbrk(PGSIZE - (top % PGSIZE)); PGSIZE 210 user/usertests.c if(top % PGSIZE){ PGSIZE 2091 user/usertests.c c = sbrk(-PGSIZE); PGSIZE 2097 user/usertests.c if(c != a - PGSIZE){ PGSIZE 2104 user/usertests.c c = sbrk(PGSIZE); PGSIZE 2105 user/usertests.c if(c != a || sbrk(0) != a + PGSIZE){ PGSIZE 2202 user/usertests.c c = sbrk(PGSIZE); PGSIZE 2227 user/usertests.c for (i = 0; i < 10*BIG; i += PGSIZE) { PGSIZE 2248 user/usertests.c a = sbrk(PGSIZE); PGSIZE 2255 user/usertests.c if ((n = write(fd, a, PGSIZE)) < 0) { PGSIZE 2262 user/usertests.c a = sbrk(PGSIZE); PGSIZE 2276 user/usertests.c for(p = 0; p <= (uint)hi; p += PGSIZE){ PGSIZE 2417 user/usertests.c sp -= USERSTACK*PGSIZE;