Skip to content

Commit 2fc6c94

Browse files
committed
PIT: Supress further timer interrupts
1 parent 81f4556 commit 2fc6c94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hw/pit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ namespace hw {
6161

6262
void PIT::disable_regular_interrupts()
6363
{
64-
oneshot(1);
65-
IRQ_manager::get().disable_irq(0);
64+
if (current_mode_ != ONE_SHOT)
65+
oneshot(1);
6666
}
6767

6868
PIT::PIT() {}

0 commit comments

Comments
 (0)