[LinuxBIOS] RE: Intel 82801 southbridge NMI configuration
Steven J. Magnani
steve at digidescorp.com
Fri May 20 18:39:30 CEST 2005
A correction to the corrected code, for the record...the outb()
parameters were reversed...
#include <arch/io.h>
static void lpc_init(struct device *dev)
{
...
/* Set up NMI on errors */
byte = inb(0x61);
byte &= ~(1 << 3); /* IOCHK# NMI Enable */
byte &= ~(1 << 2); /* PCI SERR# Enable */
outb(byte, 0x61);
byte = inb(0x70);
nmi_option = NMI_OFF;
get_option(&nmi_option, "nmi");
if (nmi_option) {
byte &= ~(1 << 7); /* set NMI */
outb(byte, 0x70);
}
...
}
--Steve
More information about the coreboot
mailing list