summaryrefslogtreecommitdiff
path: root/sys/src/9/pc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-07-15 16:07:54 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-07-15 16:07:54 +0000
commit006c4d7ffcf24ab3013f7b4cf64034ad182a6e96 (patch)
treeaf191cd10816e619d4124bdf2ca4ca36a4498f03 /sys/src/9/pc
parent3b1c450cd53eb2dddca40ae23603179ff06c8a50 (diff)
archacpi: make *acpi=1 the default
Diffstat (limited to 'sys/src/9/pc')
-rw-r--r--sys/src/9/pc/archacpi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/src/9/pc/archacpi.c b/sys/src/9/pc/archacpi.c
index 01c911468..044825a8c 100644
--- a/sys/src/9/pc/archacpi.c
+++ b/sys/src/9/pc/archacpi.c
@@ -787,18 +787,18 @@ readtbls(Chan*, void *v, long n, vlong o)
static int
identify(void)
{
- uvlong pa;
+ uvlong v;
char *cp;
Tbl *t;
if((cp = getconf("*acpi")) == nil)
- return 1;
- pa = (uintptr)strtoull(cp, nil, 16);
- if(pa <= 1)
+ cp = "1"; /* search for rsd by default */
+ v = (uintptr)strtoull(cp, nil, 16);
+ if(v <= 1)
rsd = rsdsearch();
else {
- memreserve(pa, sizeof(Rsd));
- rsd = vmap(pa, sizeof(Rsd));
+ memreserve(v, sizeof(Rsd));
+ rsd = vmap(v, sizeof(Rsd));
}
if(rsd == nil)
return 1;
@@ -807,7 +807,7 @@ identify(void)
maptables();
addarchfile("acpitbls", 0444, readtbls, nil);
addarchfile("acpimem", 0600, readmem, writemem);
- if(strcmp(cp, "0") == 0 || findtable("APIC") == nil)
+ if(v == 0 || findtable("APIC") == nil)
return 1;
if((cp = getconf("*nomp")) != nil && strcmp(cp, "0") != 0)
return 1;