From: Philip Homburg Date: Mon, 23 Apr 2007 13:46:54 +0000 (+0000) Subject: Initialize s_ipc_sendrec. X-Git-Tag: v3.1.4~416 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/index.html?a=commitdiff_plain;h=8937b6a8dea983ee0ec47eecbc0fbd8558c7d78c;p=minix.git Initialize s_ipc_sendrec. --- diff --git a/kernel/main.c b/kernel/main.c index 1ba0e50d5..f9ec99e20 100755 --- a/kernel/main.c +++ b/kernel/main.c @@ -31,7 +31,7 @@ PUBLIC void main() struct boot_image *ip; /* boot image pointer */ register struct proc *rp; /* process pointer */ register struct priv *sp; /* privilege structure pointer */ - register int i, s; + register int i, j, s; int hdrindex; /* index to array of a.out headers */ phys_clicks text_base; vir_clicks text_clicks, data_clicks, st_clicks; @@ -97,6 +97,12 @@ PUBLIC void main() ip->k_calls[ci]-KERNEL_CALL); priv(rp)->s_ipc_to.chunk[0] = ip->ipc_to; /* restrict targets */ + + for (j=0; jp_priv->s_ipc_sendrec.chunk[j] = ~0L; + } + unset_sys_bit(rp->p_priv->s_ipc_sendrec, USER_PRIV_ID); + if (iskerneln(proc_nr(rp))) { /* part of the kernel? */ if (ip->stksize > 0) { /* HARDWARE stack size is 0 */ rp->p_priv->s_stack_guard = (reg_t *) ktsb;