summaryrefslogtreecommitdiff
path: root/sys/src/9
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-06-05 14:57:38 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-06-05 14:57:38 +0200
commitbc2a5d9b1e1db8927f7c10725eec5a073968c9d5 (patch)
tree3cb88a9a26c51286f99daea3acb968cb69a3e717 /sys/src/9
parent3ccc8224be30ed01a30a4d92ca868df4e98a13fd (diff)
aml: define amlintmask and set it according to DSDT revision (64bit / 32bit)
Diffstat (limited to 'sys/src/9')
-rw-r--r--sys/src/9/pc/archacpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/9/pc/archacpi.c b/sys/src/9/pc/archacpi.c
index 644df59b9..c2ed1580f 100644
--- a/sys/src/9/pc/archacpi.c
+++ b/sys/src/9/pc/archacpi.c
@@ -495,6 +495,7 @@ acpiinit(void)
for(i=0; i<ntblmap; i++){
t = tblmap[i];
if(memcmp(t->sig, "DSDT", 4) == 0){
+ amlintmask = (~0ULL) >> (t->rev <= 1)*32;
amlload(t->data, tbldlen(t));
break;
}