ph 21 bootmain.c struct proghdr *ph, *eph; ph 35 bootmain.c ph = (struct proghdr*)((uchar*)elf + elf->phoff); ph 36 bootmain.c eph = ph + elf->phnum; ph 37 bootmain.c for(; ph < eph; ph++){ ph 38 bootmain.c pa = (uchar*)ph->paddr; ph 39 bootmain.c readseg(pa, ph->filesz, ph->off); ph 40 bootmain.c if(ph->memsz > ph->filesz) ph 41 bootmain.c stosb(pa + ph->filesz, 0, ph->memsz - ph->filesz); ph 18 exec.c struct proghdr ph; ph 40 exec.c for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ ph 41 exec.c if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) ph 43 exec.c if(ph.type != ELF_PROG_LOAD) ph 45 exec.c if(ph.memsz < ph.filesz) ph 47 exec.c if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) ph 49 exec.c if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0)