From: Ben Gras Date: Thu, 11 Dec 2008 14:18:51 +0000 (+0000) Subject: PM_PROC_NR shouldn't be hardcoded as the caller. X-Git-Tag: v3.1.4~206 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/verify-sign/verify.pl?a=commitdiff_plain;h=034b5c60420d9fc3479a2f3ee37198a644356ebe;p=minix.git PM_PROC_NR shouldn't be hardcoded as the caller. --- diff --git a/kernel/system/do_sigsend.c b/kernel/system/do_sigsend.c index fc1980063..f4f0c3a32 100644 --- a/kernel/system/do_sigsend.c +++ b/kernel/system/do_sigsend.c @@ -34,7 +34,7 @@ message *m_ptr; /* pointer to request message */ rp = proc_addr(proc); /* Get the sigmsg structure into our address space. */ - if((r=data_copy(PM_PROC_NR, (vir_bytes) m_ptr->SIG_CTXT_PTR, + if((r=data_copy(who_e, (vir_bytes) m_ptr->SIG_CTXT_PTR, SYSTEM, (vir_bytes) &smsg, (phys_bytes) sizeof(struct sigmsg))) != OK) return r; @@ -74,17 +74,6 @@ message *m_ptr; /* pointer to request message */ (vir_bytes) sizeof(struct sigframe))) != OK) return r; - -#if ( _MINIX_CHIP == _CHIP_POWERPC ) /* stuff that can't be done in the assembler code. */ - /* When the signal handlers C code is called it will write this value - * into the signal frame (over the sf_retadr value). - */ - rp->p_reg.lr = smsg.sm_sigreturn; - /* The first (and only) parameter for the user signal handler function. - */ - rp->p_reg.retreg = smsg.sm_signo; /* note the retreg == first argument */ -#endif - /* Reset user registers to execute the signal handler. */ rp->p_reg.sp = (reg_t) frp; rp->p_reg.pc = (reg_t) smsg.sm_sighandler;