diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-06-28 18:22:36 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-06-28 18:22:36 +0200 |
commit | 00328b5759f66400aed0e71ccc687250113e61ee (patch) | |
tree | 7875e90cc7b31858d98f4dc267a43a531397c23c /sys/src/9/pc/trap.c | |
parent | 9b0efa4176aa9437160c7970f3637e33f8196fce (diff) |
pc, pc64: toggle bit 2 in port 0x61 to reset and enable PCI SERR# nmi's, print nmi status
Diffstat (limited to 'sys/src/9/pc/trap.c')
-rw-r--r-- | sys/src/9/pc/trap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/9/pc/trap.c b/sys/src/9/pc/trap.c index 9bf7550f9..071278d03 100644 --- a/sys/src/9/pc/trap.c +++ b/sys/src/9/pc/trap.c @@ -175,7 +175,7 @@ nmienable(void) outb(0x70, 0); x = inb(0x61) & 0x07; /* Enable NMI */ - outb(0x61, 0x08|x); + outb(0x61, 0x0C|x); outb(0x61, x); } @@ -422,7 +422,8 @@ trap(Ureg* ureg) * Don't re-enable, it confuses the crash dumps. nmienable(); */ - iprint("cpu%d: PC %#8.8lux\n", m->machno, ureg->pc); + iprint("cpu%d: nmi PC %#8.8lux, status %ux\n", + m->machno, ureg->pc, inb(0x61)); while(m->machno != 0) ; } |