arm: protect state after signal handler

. set MF_CONTEXT_SET after signal handler state
	  is set so it doesn't get clobbered by the kernel
	  afterwards (i.e. by delivermsg()).

fixes at least test41.

Change-Id: I7e5e0e9311c8bbc1c0a9c7ca466ceddd9edfa03f
This commit is contained in:
Ben Gras 2013-02-05 17:17:19 +01:00
parent 298b41b523
commit 3045d2870b

View file

@ -92,6 +92,7 @@ int do_sigsend(struct proc * caller, message * m_ptr)
rp->p_reg.retreg = (reg_t) fr.sf_signo;
rp->p_reg.r1 = (reg_t) fr.sf_code;
rp->p_reg.r2 = (reg_t) fr.sf_scp;
rp->p_misc_flags |= MF_CONTEXT_SET;
#endif
/* Copy the sigframe structure to the user's stack. */