From: Ben Gras Date: Fri, 12 Jan 2007 16:33:41 +0000 (+0000) Subject: Use bitwise not instead of logical not on PIE flag when disabling periodic X-Git-Tag: v3.1.3~117 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=f65b3b8fbf47e2afee9dcbc1821333c27e9504aa;p=minix.git 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. --- diff --git a/kernel/arch/i386/system.c b/kernel/arch/i386/system.c index 72d28b8b7..2f96901d8 100644 --- a/kernel/arch/i386/system.c +++ b/kernel/arch/i386/system.c @@ -89,7 +89,7 @@ PUBLIC void arch_stop_profile_clock(void) outb(RTC_INDEX, RTC_REG_B); r = inb(RTC_IO); 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)