diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-11-10 00:53:22 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-11-10 00:53:22 +0100 |
| commit | 2f8ee8fb4ee529c8953f934dc7c6b1828b453a31 (patch) | |
| tree | 473837574ba622bda8a4d536bb0917081934dffa | |
| parent | 95dbc72801b507b9c2c42444347b98872576244a (diff) | |
| download | plan9front-2f8ee8fb4ee529c8953f934dc7c6b1828b453a31.tar.xz | |
pc, pc64: command flag sometimes doesnt reset, just check for IBF
| -rw-r--r-- | sys/src/9/pc/ec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc/ec.c b/sys/src/9/pc/ec.c index c42356af7..271c13c50 100644 --- a/sys/src/9/pc/ec.c +++ b/sys/src/9/pc/ec.c @@ -96,7 +96,7 @@ ecread(uchar addr) lock(&ec); if(!ec.init) goto out; - if(ecwait(BURST|CMD, 0)) + if(ecwait(IBF, 0)) goto out; ecwr(EC_SC, RD_EC); if(ecwait(IBF, 0)) @@ -120,7 +120,7 @@ ecwrite(uchar addr, uchar val) lock(&ec); if(!ec.init) goto out; - if(ecwait(BURST|CMD, 0)) + if(ecwait(IBF, 0)) goto out; ecwr(EC_SC, WR_EC); if(ecwait(IBF, 0)) |
