epc 127 kernel/exec.c p->trapframe->epc = elf.entry; // initial program counter = main epc 246 kernel/proc.c p->trapframe->epc = 0; // user program counter epc 47 kernel/proc.h /* 24 */ uint64 epc; // saved user program counter epc 51 kernel/trap.c p->trapframe->epc = r_sepc(); epc 61 kernel/trap.c p->trapframe->epc += 4; epc 120 kernel/trap.c w_sepc(p->trapframe->epc);