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/xen/mmu.c | |
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/xen/mmu.c')
-rw-r--r-- | sys/src/9/xen/mmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/xen/mmu.c b/sys/src/9/xen/mmu.c index 250d08371..03017e88d 100644 --- a/sys/src/9/xen/mmu.c +++ b/sys/src/9/xen/mmu.c @@ -237,10 +237,10 @@ mmuswitch(Proc* proc) //XXX doesn't work for some reason, but it's not needed for uniprocessor //pdb = (ulong*)proc->mmupdb->va; //xenupdate(&pdb[PDX(MACHADDR)], m->pdb[PDX(MACHADDR)]); - taskswitch(proc->mmupdb, (ulong)(proc->kstack+KSTACK)); + taskswitch(proc->mmupdb, (ulong)proc); } else - taskswitch(0, (ulong)(proc->kstack+KSTACK)); + taskswitch(0, (ulong)proc); } void |