diff options
author | glenda <glenda@9front.local> | 2025-05-14 01:33:55 +0000 |
---|---|---|
committer | glenda <glenda@9front.local> | 2025-05-14 01:33:55 +0000 |
commit | a7081490dbeda19788e6374a080ee38606aa3cd3 (patch) | |
tree | 8c440e3611573ee60322e7e84e5204e3e326028a /sys/src/9/port | |
parent | 635cb9e7425577dae44eb415ad42e8d3892850b5 (diff) |
kernel: get rid of Proc.kstack
The kernel stack is now above the Proc structure,
so the explicit kstack pointer can be eliminated.
Diffstat (limited to 'sys/src/9/port')
-rw-r--r-- | sys/src/9/port/portdat.h | 2 | ||||
-rw-r--r-- | sys/src/9/port/proc.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/9/port/portdat.h b/sys/src/9/port/portdat.h index 8f3904441..5aaad9ada 100644 --- a/sys/src/9/port/portdat.h +++ b/sys/src/9/port/portdat.h @@ -653,7 +653,7 @@ struct Schedq struct Proc { Label sched; /* known to l.s */ - char *kstack; /* known to l.s */ + Mach *mach; /* machine running this proc */ char *text; char *user; diff --git a/sys/src/9/port/proc.c b/sys/src/9/port/proc.c index 9e0a530d9..1fad45853 100644 --- a/sys/src/9/port/proc.c +++ b/sys/src/9/port/proc.c @@ -648,7 +648,6 @@ newproc(void) } p = (Proc*)(b + KSTACK); p->index = procalloc.nextindex++; - p->kstack = b; procalloc.tab[p->index] = p; } procalloc.free = p->qnext; |