shithub: riscv

Download patch

ref: 3e0e77a8521331412c96b6371622aa2f76d7aefc
parent: cb5f6005bc3376c4ba12aa29ed9bc7649e41192f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Mar 11 11:13:58 EST 2017

pc kernel: don't use active.thunderbirdsargo in vunmap() tlb flush code

--- a/sys/src/9/pc/mmu.c
+++ b/sys/src/9/pc/mmu.c
@@ -679,7 +679,7 @@
 	 * boot. In that case it suffices to flush the MACH(0) TLB
 	 * and return.
 	 */
-	if(!active.thunderbirdsarego){
+	if(up == nil){
 		putcr3(PADDR(MACHP(0)->pdb));
 		return;
 	}