summaryrefslogtreecommitdiff
path: root/Kernel/Interrupts
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-12-30 22:44:54 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-31 21:51:00 +0100
commitbbe787a0afd51307cdac2c023895c19df31519ca (patch)
tree44dc80cf50b22b461c27c1e9d99fa2c9ff00e22e /Kernel/Interrupts
parent2568a93b5dd29d2b06d613a4ece502ee696f189a (diff)
downloadserenity-bbe787a0afd51307cdac2c023895c19df31519ca.zip
Everywhere: Re-format with clang-format-11
Compared to version 10 this fixes a bunch of formatting issues, mostly around structs/classes with attributes like [[gnu::packed]], and incorrect insertion of spaces in parameter types ("T &"/"T &&"). I also removed a bunch of // clang-format off/on and FIXME comments that are no longer relevant - on the other hand it tried to destroy a couple of neatly formatted comments, so I had to add some as well.
Diffstat (limited to 'Kernel/Interrupts')
-rw-r--r--Kernel/Interrupts/IOAPIC.h3
-rw-r--r--Kernel/Interrupts/PIC.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/Interrupts/IOAPIC.h b/Kernel/Interrupts/IOAPIC.h
index 4642df5a23..c5085b313f 100644
--- a/Kernel/Interrupts/IOAPIC.h
+++ b/Kernel/Interrupts/IOAPIC.h
@@ -30,8 +30,7 @@
#include <Kernel/VM/TypedMapping.h>
namespace Kernel {
-struct [[gnu::packed]] ioapic_mmio_regs
-{
+struct [[gnu::packed]] ioapic_mmio_regs {
volatile u32 select;
u32 reserved[3];
volatile u32 window;
diff --git a/Kernel/Interrupts/PIC.cpp b/Kernel/Interrupts/PIC.cpp
index 29bb7e4590..891dee0130 100644
--- a/Kernel/Interrupts/PIC.cpp
+++ b/Kernel/Interrupts/PIC.cpp
@@ -42,6 +42,7 @@ namespace Kernel {
#define PIC1_CTL 0xA0
#define PIC1_CMD 0xA1
+// clang-format off
#define ICW1_ICW4 0x01 /* ICW4 (not) needed */
#define ICW1_SINGLE 0x02 /* Single (cascade) mode */
#define ICW1_INTERVAL4 0x04 /* Call address interval 4 (8) */
@@ -53,6 +54,7 @@ namespace Kernel {
#define ICW4_BUF_SLAVE 0x08 /* Buffered mode/slave */
#define ICW4_BUF_MASTER 0x0C /* Buffered mode/master */
#define ICW4_SFNM 0x10 /* Special fully nested (not) */
+// clang-format on
bool inline static is_all_masked(u16 reg)
{