mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 04:17:34 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -24,7 +24,7 @@ UNMAP_AFTER_INIT APICTimer* APICTimer::initialize(u8 interrupt_number, HardwareT
|
|||
return &timer.leak_ref();
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT APICTimer::APICTimer(u8 interrupt_number, Function<void(const RegisterState&)> callback)
|
||||
UNMAP_AFTER_INIT APICTimer::APICTimer(u8 interrupt_number, Function<void(RegisterState const&)> callback)
|
||||
: HardwareTimer<GenericInterruptHandler>(interrupt_number, move(callback))
|
||||
{
|
||||
disable_remap();
|
||||
|
@ -50,7 +50,7 @@ UNMAP_AFTER_INIT bool APICTimer::calibrate(HardwareTimerBase& calibration_source
|
|||
volatile u64 start_reference = 0, end_reference = 0;
|
||||
volatile u32 start_apic_count = 0, end_apic_count = 0;
|
||||
bool query_reference = calibration_source.can_query_raw();
|
||||
auto original_source_callback = calibration_source.set_callback([&](const RegisterState&) {
|
||||
auto original_source_callback = calibration_source.set_callback([&](RegisterState const&) {
|
||||
u32 current_timer_count = apic.get_timer_current_count();
|
||||
#ifdef APIC_TIMER_MEASURE_CPU_CLOCK
|
||||
u64 current_tsc = supports_tsc ? read_tsc() : 0;
|
||||
|
@ -77,7 +77,7 @@ UNMAP_AFTER_INIT bool APICTimer::calibrate(HardwareTimerBase& calibration_source
|
|||
// We don't want the APIC timer to actually fire. We do however want the
|
||||
// calbibration_source timer to fire so that we can read the current
|
||||
// tick count from the APIC timer
|
||||
auto original_callback = set_callback([&](const RegisterState&) {
|
||||
auto original_callback = set_callback([&](RegisterState const&) {
|
||||
// TODO: How should we handle this?
|
||||
PANIC("APICTimer: Timer fired during calibration!");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue