From 7ad9c01dad7b1b46eced8290b8b991383d648188 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 1 Jul 2024 23:34:57 +0300 Subject: expand notifications into interrupt handlers + Terminology is still a bit poor, and will still have to write documentation + implement ipis properly --- src/uapi/proc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/uapi/proc.c') diff --git a/src/uapi/proc.c b/src/uapi/proc.c index e7fa49d..153b183 100644 --- a/src/uapi/proc.c +++ b/src/uapi/proc.c @@ -37,6 +37,7 @@ SYSCALL_DEFINE5(create)(struct tcb *t, sys_arg_t func, set_args5(c, c->tid, d0, d1, d2, d3); set_return(c, func); + c->notify_id = t->notify_id; return_args2(t, OK, c->tid); } @@ -70,6 +71,7 @@ SYSCALL_DEFINE0(fork)(struct tcb *t) * parent ID as third return value */ set_args3(n, OK, 0, get_eproc(t)->pid); + n->notify_id = c->notify_id; return_args2(t, OK, n->pid); } @@ -132,6 +134,7 @@ SYSCALL_DEFINE2(spawn)(struct tcb *t, sys_arg_t bin, sys_arg_t interp) if (!n) return_args1(t, ERR_OOMEM); + n->notify_id = c->notify_id; return_args2(t, prepare_proc(n, bin, interp), n->pid); } -- cgit v1.3