summaryrefslogtreecommitdiff
path: root/src/kernel/execbuf.c
diff options
context:
space:
mode:
authordzwdz2024-07-22 20:49:58 +0200
committerdzwdz2024-07-22 20:49:58 +0200
commit2be2236e99e5aed779b820b540d72dffb47da406 (patch)
tree771913557b89e20c825bcc1fb29baa74c801e896 /src/kernel/execbuf.c
parentacf0c1333d620821820b2246e1c7acc0aaf0bd44 (diff)
kernel: explicitly store process RIP and RFLAGS
Once again, needed for the interrupt return syscall. Seems to have made the kernel slower in timebench?
Diffstat (limited to 'src/kernel/execbuf.c')
-rw-r--r--src/kernel/execbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/execbuf.c b/src/kernel/execbuf.c
index fe9e159..71fc662 100644
--- a/src/kernel/execbuf.c
+++ b/src/kernel/execbuf.c
@@ -36,7 +36,7 @@ _Noreturn void execbuf_run(Proc *proc) {
case EXECBUF_JMP:
try_fetch(proc, buf, 1);
- proc->regs.rcx = buf[0];
+ proc->regs.rip = buf[0];
break;
default: