summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authordzwdz2022-07-20 13:50:38 +0200
committerdzwdz2022-07-20 13:50:38 +0200
commitbdb25024a3fe0c8630fd68d9ba618df595effa36 (patch)
treecbb8e994ee1b642f456c833da65b1c94c3ef7ae8 /src/kernel
parent96f41ff64d8113307f1b60d2eb6852423db34d14 (diff)
syscall/execbuf: EXECBUF_JMP
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/execbuf.c4
1 files changed, 4 insertions, 0 deletions
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);
}