From: Tomas Hruby Date: Tue, 15 Sep 2009 09:57:54 +0000 (+0000) Subject: pproc_addr unused and removed X-Git-Tag: v3.1.5~146 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=78793f4f38790ab6a2c43a97de0ad877f68ce55c;p=minix.git pproc_addr unused and removed --- diff --git a/kernel/main.c b/kernel/main.c index 9fa9406c0..f07997cdd 100755 --- a/kernel/main.c +++ b/kernel/main.c @@ -51,7 +51,6 @@ PUBLIC void main() #endif rp->p_nr = i; /* proc number from ptr */ rp->p_endpoint = _ENDPOINT(0, rp->p_nr); /* generation no. 0 */ - (pproc_addr + NR_TASKS)[i] = rp; /* proc ptr from number */ } for (sp = BEG_PRIV_ADDR, i = 0; sp < END_PRIV_ADDR; ++sp, ++i) { sp->s_proc_nr = NONE; /* initialize as free */ diff --git a/kernel/proc.h b/kernel/proc.h index 65e94875e..28dfb1a0e 100755 --- a/kernel/proc.h +++ b/kernel/proc.h @@ -215,7 +215,6 @@ struct proc { * with sizeof(struct proc) to determine the address. */ EXTERN struct proc proc[NR_TASKS + NR_PROCS]; /* process table */ -EXTERN struct proc *pproc_addr[NR_TASKS + NR_PROCS]; EXTERN struct proc *rdy_head[NR_SCHED_QUEUES]; /* ptrs to ready list headers */ EXTERN struct proc *rdy_tail[NR_SCHED_QUEUES]; /* ptrs to ready list tails */