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:
parent
b01aff70d2
commit
f65b3b8fbf
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user