From: Kevin O'Connor Date: Tue, 1 Sep 2015 23:43:08 +0000 (-0400) Subject: rtc: Disable NMI in rtc_mask() X-Git-Tag: rel-1.9.0~47 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3156b71a535e6617fbc60fd6aef09a229aca7327;p=seabios.git rtc: Disable NMI in rtc_mask() The rtc_mask() function should make sure the NMI disable bit is set (just as rtc_read() and rtc_write() do). Reported-by: Tim Shearer Signed-off-by: Kevin O'Connor --- diff --git a/src/hw/rtc.c b/src/hw/rtc.c index 570a3ad..9649a5a 100644 --- a/src/hw/rtc.c +++ b/src/hw/rtc.c @@ -30,6 +30,7 @@ rtc_write(u8 index, u8 val) void rtc_mask(u8 index, u8 off, u8 on) { + index |= NMI_DISABLE_BIT; outb(index, PORT_CMOS_INDEX); u8 val = inb(PORT_CMOS_DATA); outb((val & ~off) | on, PORT_CMOS_DATA);