]> Zhao Yanbai Git Server - minix.git/commitdiff
Use bitwise not instead of logical not on PIE flag when disabling periodic
authorBen Gras <ben@minix3.org>
Fri, 12 Jan 2007 16:33:41 +0000 (16:33 +0000)
committerBen Gras <ben@minix3.org>
Fri, 12 Jan 2007 16:33:41 +0000 (16:33 +0000)
interrupts to avoid clobbering register B. This seems to have fixed the
corrupting-CMOS bug when enabling profiling.

kernel/arch/i386/system.c

index 72d28b8b7ba909e20137fad77969769e40c8e2a7..2f96901d89fdba8302ec2fd6a9b83a2681a4032f 100644 (file)
@@ -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)