diff options
| -rw-r--r-- | proc.c | 3 | ||||
| -rw-r--r-- | trap.c | 3 | 
2 files changed, 4 insertions, 2 deletions
| @@ -120,7 +120,8 @@ userinit(void)      panic("userinit: out of memory?");    if (!allocuvm(p->pgdir, 0x0, (int)_binary_initcode_size))      panic("userinit: out of memory?"); -  inituvm(p->pgdir, 0x0, _binary_initcode_start, (int)_binary_initcode_size); +  inituvm(p->pgdir, 0x0, _binary_initcode_start, +          (int)_binary_initcode_size);    p->sz = PGROUNDUP((int)_binary_initcode_size);    memset(p->tf, 0, sizeof(*p->tf));    p->tf->cs = (SEG_UCODE << 3) | DPL_USER; @@ -83,7 +83,8 @@ trap(struct trapframe *tf)        panic("trap");      }      // In user space, assume process misbehaved. -    cprintf("pid %d %s: trap %d err %d on cpu %d eip 0x%x addr 0x%x--kill proc\n", +    cprintf("pid %d %s: trap %d err %d on cpu %d " +            "eip 0x%x addr 0x%x--kill proc\n",              proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip,   	    rcr2());      proc->killed = 1; | 
