sys_self_notify() now honors ev_type
authorBarret Rhoden <brho@cs.berkeley.edu>
Sat, 10 Dec 2011 00:09:53 +0000 (16:09 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 15 Dec 2011 22:48:42 +0000 (14:48 -0800)
Previously, if you didn't send a u_msg, we weren't sending the type.
The desired behavior of this half-assed syscall is to send either
ev_type with 0s for arguments, or send u_msg.

kern/src/syscall.c

index da444ea..dc03d7f 100644 (file)
@@ -725,6 +725,8 @@ static int sys_self_notify(struct proc *p, uint32_t vcoreid,
                        set_errno(EINVAL);
                        return -1;
                }
+       } else {
+               local_msg.ev_type = ev_type;
        }
        /* this will post a message and IPI, regardless of wants/needs/debutantes.*/
        post_vcore_event(p, &local_msg, vcoreid, priv ? EVENT_VCORE_PRIVATE : 0);