code = regs->r0;
thread = current_act();
- p = get_bsdtask_info(current_task());
+ p = current_proc();
rval = (int *)get_bsduthreadrval(thread);
/*
current_task()->syscalls_unix++;
error = (*(callp->sy_call))(p, (void *)vt, rval);
+ regs = find_user_regs(thread);
+ if (regs == (struct ppc_saved_state *)0)
+ panic("No user savearea while returning from system call");
+
if (error == ERESTART) {
regs->srr0 -= 8;
}
extern int nsysent;
thread = current_act();
- p = get_bsdtask_info(current_task());
+ p = current_proc();
rval = (int *)get_bsduthreadrval(thread);
pcb = thread->mact.pcb;
regs = &pcb->ss;