Use bitwise not instead of logical not on PIE flag when disabling periodic

interrupts to avoid clobbering register B. This seems to have fixed the
corrupting-CMOS bug when enabling profiling.
This commit is contained in:
Ben Gras 2007-01-12 16:33:41 +00:00
parent b01aff70d2
commit f65b3b8fbf

View File

@ -89,7 +89,7 @@ PUBLIC void arch_stop_profile_clock(void)
outb(RTC_INDEX, RTC_REG_B); outb(RTC_INDEX, RTC_REG_B);
r = inb(RTC_IO); r = inb(RTC_IO);
outb(RTC_INDEX, RTC_REG_B); outb(RTC_INDEX, RTC_REG_B);
outb(RTC_IO, r & !RTC_B_PIE); outb(RTC_IO, r & ~RTC_B_PIE);
} }
PUBLIC void arch_ack_profile_clock(void) PUBLIC void arch_ack_profile_clock(void)