git: 9front

Download patch

ref: bf809631a2a7d33f408ba65daa0a8908ac198ab4
parent: 0dbc1127278e4c1cd6d44368363a1214a0ef4ae4
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Sep 13 19:56:26 EDT 2021

archacpi: leave acpi enabled with *acpi=

*acpi= was treated the same as *acpi=0, when we
want it to be treated the same as *acpi=1

--- a/sys/src/9/pc/archacpi.c
+++ b/sys/src/9/pc/archacpi.c
@@ -791,7 +791,7 @@
 	char *cp;
 	Tbl *t;
 
-	if((cp = getconf("*acpi")) == nil)
+	if((cp = getconf("*acpi")) == nil || *cp == '\0')
 		cp = "1";	/* search for rsd by default */
 	v = (uintptr)strtoull(cp, nil, 16);
 	if(v <= 1)
--