CMOS: Add set_option and rework get_option.
[coreboot.git] / src / southbridge / amd / amd8131 / amd8131_bridge.c
index 9d8507766807f0431f087cbd6cdd52c9ceaa3ee3..14a813dd2b35f649cd59fd18b8aa83aa898f507f 100644 (file)
@@ -278,7 +278,7 @@ static void amd8131_pcix_init(device_t dev)
        uint32_t dword;
        uint16_t word;
        uint8_t byte;
-       int nmi_option;
+       uint32_t nmi_option;
 
        /* Enable memory write and invalidate ??? */
        byte = pci_read_config8(dev, 0x04);
@@ -323,7 +323,7 @@ static void amd8131_pcix_init(device_t dev)
        
        /* NMI enable */
        nmi_option = NMI_OFF;
-       get_option(&nmi_option, "nmi");
+       get_option("nmi", &nmi_option);
        if(nmi_option) {
                dword = pci_read_config32(dev, 0x44);
                dword |= (1<<0);