1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:17:35 +00:00

Meta+Kernel: Make clang-format-10 clean

This commit is contained in:
Ben Wiederhake 2020-09-18 09:49:51 +02:00 committed by Andreas Kling
parent fa62c5595e
commit 64cc3f51d0
61 changed files with 123 additions and 118 deletions

View file

@ -56,7 +56,7 @@ private:
class ICRReg {
u32 m_low { 0 };
u32 m_high { 0 };
public:
enum DeliveryMode {
Fixed = 0x0,
@ -84,13 +84,13 @@ private:
AllIncludingSelf = 0x2,
AllExcludingSelf = 0x3,
};
ICRReg(u8 vector, DeliveryMode delivery_mode, DestinationMode destination_mode, Level level, TriggerMode trigger_mode, DestinationShorthand destinationShort, u8 destination = 0)
: m_low(vector | (delivery_mode << 8) | (destination_mode << 11) | (level << 14) | (static_cast<u32>(trigger_mode) << 15) | (destinationShort << 18)),
m_high((u32)destination << 24)
: m_low(vector | (delivery_mode << 8) | (destination_mode << 11) | (level << 14) | (static_cast<u32>(trigger_mode) << 15) | (destinationShort << 18))
, m_high((u32)destination << 24)
{
}
u32 low() const { return m_low; }
u32 high() const { return m_high; }
};
@ -98,11 +98,11 @@ private:
OwnPtr<Region> m_apic_base;
Vector<OwnPtr<Processor>> m_ap_processor_info;
Vector<Thread*> m_ap_idle_threads;
AK::Atomic<u8> m_apic_ap_count{0};
AK::Atomic<u8> m_apic_ap_continue{0};
u32 m_processor_cnt{0};
u32 m_processor_enabled_cnt{0};
AK::Atomic<u8> m_apic_ap_count { 0 };
AK::Atomic<u8> m_apic_ap_continue { 0 };
u32 m_processor_cnt { 0 };
u32 m_processor_enabled_cnt { 0 };
static PhysicalAddress get_base();
static void set_base(const PhysicalAddress& base);
void write_register(u32 offset, u32 value);

View file

@ -37,8 +37,8 @@ GenericInterruptHandler& GenericInterruptHandler::from(u8 interrupt_number)
}
GenericInterruptHandler::GenericInterruptHandler(u8 interrupt_number, bool disable_remap)
: m_interrupt_number(interrupt_number),
m_disable_remap(disable_remap)
: m_interrupt_number(interrupt_number)
, m_disable_remap(disable_remap)
{
if (m_disable_remap)
register_generic_interrupt_handler(m_interrupt_number, *this);

View file

@ -39,7 +39,7 @@ enum class IRQControllerType {
class IRQController : public RefCounted<IRQController> {
public:
virtual ~IRQController() {}
virtual ~IRQController() { }
virtual void enable(const GenericInterruptHandler&) = 0;
virtual void disable(const GenericInterruptHandler&) = 0;
@ -57,7 +57,7 @@ public:
virtual IRQControllerType type() const = 0;
protected:
IRQController() {}
IRQController() { }
virtual void initialize() = 0;
bool m_hard_disabled { false };
};

View file

@ -37,7 +37,7 @@ class MSIHandler final : public GenericInterruptHandler {
public:
virtual ~MSIHandler();
virtual void handle_interrupt(RegisterState&) override {}
virtual void handle_interrupt(RegisterState&) override { }
void enable_irq();
void disable_irq();

View file

@ -27,9 +27,9 @@
#include <AK/Assertions.h>
#include <AK/Types.h>
#include <Kernel/Arch/i386/CPU.h>
#include <Kernel/IO.h>
#include <Kernel/Interrupts/GenericInterruptHandler.h>
#include <Kernel/Interrupts/PIC.h>
#include <Kernel/IO.h>
namespace Kernel {