aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/kernel/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv64/kernel/proc.c')
-rw-r--r--arch/riscv64/kernel/proc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/riscv64/kernel/proc.c b/arch/riscv64/kernel/proc.c
index 0eb3ad2..85c7bb2 100644
--- a/arch/riscv64/kernel/proc.c
+++ b/arch/riscv64/kernel/proc.c
@@ -25,6 +25,14 @@ stat_t set_return(vm_t v)
return OK;
}
+stat_t set_ipc(struct tcb *t, id_t pid, id_t tid)
+{
+ struct riscv_regs *r = (struct riscv_regs *)(--t);
+ r->a2 = (long)pid;
+ r->a3 = (long)tid;
+ return OK;
+}
+
stat_t set_thread(struct tcb *t, vm_t stack)
{
/* get location of registers in memory */