aboutsummaryrefslogtreecommitdiff
path: root/src/uapi/proc.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-07-06 18:14:04 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-07-06 18:14:04 +0300
commit76517486919657ecadda9867125dc6730f29a5b7 (patch)
tree02d975db2b911ec7b92c4b1be7c5a2510b418ae1 /src/uapi/proc.c
parent608f44306a6f0d5692f5c81bcbfe7a621ec254ba (diff)
downloadkmi-76517486919657ecadda9867125dc6730f29a5b7.tar.gz
kmi-76517486919657ecadda9867125dc6730f29a5b7.zip
pretty massive virtual memory rewrite
+ The system is now a bit simpler and hopefully easier to understand, while also extending the shared memory to be 1:N, where there is one owner who may become a zombie while waiting for the N to die.
Diffstat (limited to 'src/uapi/proc.c')
-rw-r--r--src/uapi/proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uapi/proc.c b/src/uapi/proc.c
index 85acb29..ff02113 100644
--- a/src/uapi/proc.c
+++ b/src/uapi/proc.c
@@ -13,7 +13,7 @@
#include <kmi/power.h>
#include <kmi/notify.h>
#include <kmi/orphanage.h>
-#include <kmi/mem_regions.h>
+#include <kmi/regions.h>
#include <arch/irq.h>
@@ -100,7 +100,7 @@ SYSCALL_DEFINE2(exec)(struct tcb *t, sys_arg_t bin, sys_arg_t interp)
return_args1(t, ERR_INVAL);
/* mark binary to be kept */
- struct mem_region *b = find_used_region(&t->sp_r, bin);
+ struct mem_region *b = find_used_region(&t->uvmem.region, bin);
if (!b)
return_args1(t, ERR_ADDR);
@@ -109,7 +109,7 @@ SYSCALL_DEFINE2(exec)(struct tcb *t, sys_arg_t bin, sys_arg_t interp)
struct mem_region *i = 0;
if (interp) {
/* mark interpreter to be kept */
- i = find_used_region(&t->sp_r, interp);
+ i = find_used_region(&t->uvmem.region, interp);
if (!i)
return_args1(t, ERR_INVAL);