summaryrefslogtreecommitdiff
path: root/sys/src/cmd/scram.c
diff options
context:
space:
mode:
authorftrvxmtrx <ftrvxmtrx@gmail.com>2016-10-15 23:34:08 +0200
committerftrvxmtrx <ftrvxmtrx@gmail.com>2016-10-15 23:34:08 +0200
commit277913c94afb787ce74f0659b96cda303f9cd787 (patch)
tree7c96a25d759fe89957189360661ad1e0cd39bee7 /sys/src/cmd/scram.c
parent375ad2d3abef711985c51eea140281a092c34d49 (diff)
scram: oops. word is 0xffff, not 0xff
Diffstat (limited to 'sys/src/cmd/scram.c')
-rw-r--r--sys/src/cmd/scram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/scram.c b/sys/src/cmd/scram.c
index fdd013682..5c060706a 100644
--- a/sys/src/cmd/scram.c
+++ b/sys/src/cmd/scram.c
@@ -159,11 +159,11 @@ tryacpi:
/* disable GPEs */
for(n = 0; GPE0_BLK > 0 && n < GPE0_BLK_LEN/2; n += 2){
outw(GPE0_BLK + GPE0_BLK_LEN/2 + n, 0); /* EN */
- outw(GPE0_BLK + n, 0xff); /* STS */
+ outw(GPE0_BLK + n, 0xffff); /* STS */
}
for(n = 0; GPE1_BLK > 0 && n < GPE1_BLK_LEN/2; n += 2){
outw(GPE1_BLK + GPE1_BLK_LEN/2 + n, 0); /* EN */
- outw(GPE1_BLK + n, 0xff); /* STS */
+ outw(GPE1_BLK + n, 0xffff); /* STS */
}
outw(PM1a_CNT_BLK, ((SLP_TYPa << 10) & SLP_TM) | SLP_EN);