shithub: nix

Download patch

ref: bc42e2e14ccfea0651ca99179e2d470fd68f98d3
parent: 72170170ad724084a638251dba76f37e21889520
author: glenda <glenda@cirno>
date: Wed May 8 08:45:43 EDT 2024

don't use mwait for now, it seems not supported in qemu?

--- a/sys/src/nix/pc64/acore.c
+++ b/sys/src/nix/pc64/acore.c
@@ -121,7 +121,9 @@
 	nix->icc->fn = nil;
 	for(;i;i--){
 		acstackok();
-		mwait(&nix->icc->fn);
+		while (nix->icc->fn == 0)
+			;
+		//mwait(&nix->icc->fn);
 		if(nix->icc->flushtlb)
 			acmmuswitch();
 		DBG("acsched: cpu%d: fn %#p\n", core, nix->icc->fn);