]> Zhao Yanbai Git Server - minix.git/commitdiff
pproc_addr unused and removed
authorTomas Hruby <tom@minix3.org>
Tue, 15 Sep 2009 09:57:54 +0000 (09:57 +0000)
committerTomas Hruby <tom@minix3.org>
Tue, 15 Sep 2009 09:57:54 +0000 (09:57 +0000)
kernel/main.c
kernel/proc.h

index 9fa9406c06a43102066101b9caa57e3eb2b9503c..f07997cdd5fee61f451b8ede535666294b9c0fe1 100755 (executable)
@@ -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 */
index 65e94875ebafa28fb50f11e64cc6dad1983f3333..28dfb1a0eeab47267e78d15cb93bb134d8441832 100755 (executable)
@@ -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 */