vm: remove stack handling for signals

. moved to the kernel as the handling was only
	  reading it; the kernel may as well write it too
This commit is contained in:
Ben Gras
2012-08-29 17:31:38 +02:00
parent 860224a4d4
commit 053fa581b5
16 changed files with 12 additions and 116 deletions
-6
View File
@@ -701,7 +701,6 @@ int signo; /* signal to send to process (1 to _NSIG-1) */
* Return TRUE if this succeeded, FALSE otherwise.
*/
struct sigmsg sigmsg;
vir_bytes cur_sp;
int r, sigflags, slot;
if (!(rmp->mp_flags & UNPAUSED))
@@ -732,11 +731,6 @@ int signo; /* signal to send to process (1 to _NSIG-1) */
sigdelset(&rmp->mp_sigpending, signo);
sigdelset(&rmp->mp_ksigpending, signo);
if(vm_push_sig(rmp->mp_endpoint, &cur_sp) != OK)
return(FALSE);
sigmsg.sm_stkptr = cur_sp;
/* Ask the kernel to deliver the signal */
r = sys_sigsend(rmp->mp_endpoint, &sigmsg);
/* sys_sigsend can fail legitimately with EFAULT if