From bdb25024a3fe0c8630fd68d9ba618df595effa36 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 20 Jul 2022 13:50:38 +0200 Subject: syscall/execbuf: EXECBUF_JMP --- src/kernel/execbuf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/kernel/execbuf.c') diff --git a/src/kernel/execbuf.c b/src/kernel/execbuf.c index 6136d0e..b96188d 100644 --- a/src/kernel/execbuf.c +++ b/src/kernel/execbuf.c @@ -31,6 +31,10 @@ _Noreturn void execbuf_run(struct process *proc) { try_fetch(proc, buf, 5); _syscall(buf[0], buf[1], buf[2], buf[3], buf[4]); break; + case EXECBUF_JMP: + try_fetch(proc, buf, 1); + proc->regs.rcx = buf[0]; + break; default: halt(proc); } -- cgit v1.2.3