diff options
author | dzwdz | 2022-07-20 13:50:38 +0200 |
---|---|---|
committer | dzwdz | 2022-07-20 13:50:38 +0200 |
commit | bdb25024a3fe0c8630fd68d9ba618df595effa36 (patch) | |
tree | cbb8e994ee1b642f456c833da65b1c94c3ef7ae8 /src/kernel | |
parent | 96f41ff64d8113307f1b60d2eb6852423db34d14 (diff) |
syscall/execbuf: EXECBUF_JMP
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/execbuf.c | 4 |
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); } |