nf->arg0 = &nf->ureg;
nf->ip = 0;
cur->sp = PTR2UINT(nf);
+ cur->r0 = PTR2UINT(nf->arg0);
break;
default:
up->lastnote.flag = NDebug;
NFrame *nf;
if(up->procctl)
- procctl(up);
+ procctl();
if(up->nnote == 0)
return 0;
ureg->sp = sp;
ureg->pc = PTR2UINT(up->notify);
+ ureg->r0 = PTR2UINT(nf->arg0);
+
up->notified = 1;
up->nnote--;
memmove(&up->lastnote, &up->note[0], sizeof(Note));
if(up->procctl == Proc_tracesyscall){
up->procctl = Proc_stopme;
- procctl(up);
+ procctl();
}
scallnr = ureg->r0;
ureg->r0 = ret;
if(up->procctl == Proc_tracesyscall){
- up->procctl = Proc_stopme;
s = splhi();
- procctl(up);
+ up->procctl = Proc_stopme;
+ procctl();
splx(s);
}