shithub: riscv

Download patch

ref: fb1eadf6ed68ddf810551057709debbdbfd7938a
parent: 835db8f7965eb27292a4f3d4a60a47fccb30d8b2
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Dec 31 14:23:22 EST 2023

/sys/lib/acid/kernel: fix proctab()

--- a/sys/lib/acid/kernel
+++ b/sys/lib/acid/kernel
@@ -215,7 +215,7 @@
 
 // manipulate processes
 defn proctab(x) {
-	return procalloc.arena+sizeofProc*x;
+	return procalloc.tab[x];
 }
 
 defn proc(p) {