From: Alan Cox Date: Tue, 22 Jan 2019 23:51:30 +0000 (+0000) Subject: makeproc: fix comment and also fix it to use the right udata X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=a7233fcd7bd8cb41380d1d2cd9eddc6050dad5ae;p=FUZIX.git makeproc: fix comment and also fix it to use the right udata --- diff --git a/Kernel/process.c b/Kernel/process.c index d340d91a..b4bb47c8 100644 --- a/Kernel/process.c +++ b/Kernel/process.c @@ -265,7 +265,7 @@ ptptr getproc(void) } #endif -/* Newproc fixes up the tables for the child of a fork but also for init +/* Makeproc fixes up the tables for the child of a fork but also for init * Call in the processes context! * This process MUST be run immediately (since it sets status P_RUNNING) * @@ -307,7 +307,7 @@ void makeproc(regptr ptptr p, u_data *u) /* For systems where udata is actually a pointer or a register object */ #ifdef udata - p->p_udata = &udata; + p->p_udata = u; #endif u->u_ptab = p; /* Fixup from parent */