NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Zotac ZBOX nano



Does this diff help

Index: x86/cpu.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/x86/cpu.c,v
retrieving revision 1.158
diff -u -r1.158 cpu.c
--- x86/cpu.c	22 Jun 2018 06:22:37 -0000	1.158
+++ x86/cpu.c	26 Jun 2018 13:25:18 -0000
@@ -877,23 +877,9 @@
 	 * interrupts off.
 	 */
 	while ((ci->ci_flags & CPUF_GO) == 0) {
-		if ((cpu_feature[1] & CPUID2_MONITOR) != 0) {
-			x86_monitor(&ci->ci_flags, 0, 0);
-			if ((ci->ci_flags & CPUF_GO) != 0) {
-				continue;
-			}
-			x86_mwait(0, 0);
-		} else {
-	/*
-	 * XXX The loop repetition count could be a lot higher, but
-	 * XXX currently qemu emulator takes a _very_long_time_ to
-	 * XXX execute the pause instruction.  So for now, use a low
-	 * XXX value to allow the cpu to hatch before timing out.
-	 */
 			for (i = 50; i != 0; i--) {
 				x86_pause();
 			}
-		}
 	}
 
 	/* Because the text may have been patched in x86_patch(). */



Home | Main Index | Thread Index | Old Index