commit ffad0e5d3fa7406b6a9a5f8b82bf967384bb84d3
parent 0974b034a3b5484507094efd90add9851db0f70f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 6 Nov 2024 21:27:08 +0100
os9: Fix name of current process and parent
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/os9/arch/arm64/mmu.c b/src/os9/arch/arm64/mmu.c
@@ -149,7 +149,7 @@ initptable(Task *tp)
struct ptable *pt, *ppt;
Task *parent;
- parent = gettask(tp->ptid);
+ parent = gettask(tp->ppid);
if (!parent)
panic("orphan task at creation");
@@ -158,7 +158,7 @@ initptable(Task *tp)
pt->high = ppt->high;
pt->low = ppt->low;
- pt->assid = tp->tid;
+ pt->assid = tp->pid;
return pt;
}