shithub: riscv

Download patch

ref: d18a4568a8390d48ac8b823209e6af5d4be8e999
parent: 2def26ce10fbd0e2aa11ca4a95cfe229ed5fc448
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Tue May 31 13:06:41 EDT 2011

kprocs dont share memory with up, see: http://9fans.net/archive/2011/05/159

--- a/sys/src/9/port/proc.c
+++ b/sys/src/9/port/proc.c
@@ -1378,13 +1378,14 @@
 	memset(p->time, 0, sizeof(p->time));
 	p->time[TReal] = MACHP(0)->ticks;
 	ready(p);
+
 	/*
 	 *  since the bss/data segments are now shareable,
 	 *  any mmu info about this process is now stale
 	 *  and has to be discarded.
-	 */
 	p->newtlb = 1;
 	flushmmu();
+	 */
 }
 
 /*