From 9b6a4ba270d9d8850c5663567fb45e9a04530fa2 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 23 Nov 2014 22:53:45 +0100 Subject: Fix programming PIT counter * linux/dev/arch/i386/kernel/irq.c (init_IRQ): Properly mask 8 bits of PIT counter. --- linux/dev/arch/i386/kernel/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux') diff --git a/linux/dev/arch/i386/kernel/irq.c b/linux/dev/arch/i386/kernel/irq.c index 68bf0c4..7753814 100644 --- a/linux/dev/arch/i386/kernel/irq.c +++ b/linux/dev/arch/i386/kernel/irq.c @@ -695,7 +695,7 @@ init_IRQ (void) * Program counter 0 of 8253 to interrupt hz times per second. */ outb_p (PIT_C0 | PIT_SQUAREMODE | PIT_READMODE, PITCTL_PORT); - outb_p (latch && 0xff, PITCTR0_PORT); + outb_p (latch & 0xff, PITCTR0_PORT); outb (latch >> 8, PITCTR0_PORT); /* -- cgit v1.2.3