5 /* $Id: proctab.c,v 2.3 1994/06/24 10:48:37 ceriel Exp $ */
18 proctab = (struct proc *)
19 Malloc(NProc * sizeof (struct proc), "proctable");
27 register struct proc *pr = &proctab[pr_cnt++];
28 register struct proc *p;
31 LOG((" r6 add_proc: pr_cnt = %ld, nloc = %lu, ep = %lu",
34 fatal("procedure entry point outside text segment");
38 /* examine all old proc descriptors */
39 for (p = &proctab[0]; p < pr; p++) {
40 if ( /* the old one starts earlier */
42 && /* it seems to end later */
44 ) { /* update its limit */
47 if ( /* the old one starts later */
49 && /* our limit is beyond the old procedure entry point*/
51 ) { /* update our limit */
63 if (!check_log(" r6"))
66 for (p = 0; p < NProc; p++) {
67 register struct proc *pr = &proctab[p];
69 LOG((" r5: proctab[%ld]: nloc = %d, ep = %lu, ff = %lu",
70 p, pr->pr_nloc, pr->pr_ep, pr->pr_ff));