diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-23 22:53:45 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-23 22:53:45 +0100 |
commit | 9b6a4ba270d9d8850c5663567fb45e9a04530fa2 (patch) | |
tree | 6430924e5b33b4ccaaf1a2da458c524c298c9dcd /linux/dev | |
parent | 847f65a8b8ce1fa0d1f51a0e579768ac445cf244 (diff) |
Fix programming PIT counter
* linux/dev/arch/i386/kernel/irq.c (init_IRQ): Properly mask 8 bits of
PIT counter.
Diffstat (limited to 'linux/dev')
-rw-r--r-- | linux/dev/arch/i386/kernel/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); /* |