Skip to content

Commit a5f4645

Browse files
committed
Kernel: VERIFY that s_hardware_timers is empty when adding legacy timers
1 parent e2192d7 commit a5f4645

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Kernel/Time/TimeManagement.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ UNMAP_AFTER_INIT bool TimeManagement::probe_and_set_x86_legacy_hardware_timers()
447447
}
448448
}
449449

450+
VERIFY(s_hardware_timers->is_empty());
450451
s_hardware_timers->try_append(PIT::initialize(TimeManagement::update_time)).release_value_but_fixme_should_propagate_errors();
451452
s_hardware_timers->try_append(RealTimeClock::create(TimeManagement::system_timer_tick)).release_value_but_fixme_should_propagate_errors();
452453
m_time_keeper_timer = (*s_hardware_timers)[0];

0 commit comments

Comments
 (0)