aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/pre/src/kernel/cpu/if.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-10-29 15:01:43 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-10-29 15:01:43 +0100
commitb157e2c472d8bd67ac1656404a6a6ee821260f4b (patch)
tree9c4ebaee21c9ad3521f86c543dc1f29906305baa /arch/x86_64/pre/src/kernel/cpu/if.cpp
parentc2b0bdfe3b725166f16c742cdaca7969052df382 (diff)
downloadkernel-b157e2c472d8bd67ac1656404a6a6ee821260f4b.tar.xz
kernel-b157e2c472d8bd67ac1656404a6a6ee821260f4b.zip
chore: reformat source code
Diffstat (limited to 'arch/x86_64/pre/src/kernel/cpu/if.cpp')
-rw-r--r--arch/x86_64/pre/src/kernel/cpu/if.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/x86_64/pre/src/kernel/cpu/if.cpp b/arch/x86_64/pre/src/kernel/cpu/if.cpp
index 60a90a3..5d056fc 100644
--- a/arch/x86_64/pre/src/kernel/cpu/if.cpp
+++ b/arch/x86_64/pre/src/kernel/cpu/if.cpp
@@ -1,7 +1,13 @@
namespace teachos::arch::kernel::cpu
{
- auto set_interrupt_flag() -> void { asm volatile("sti"); }
+ auto set_interrupt_flag() -> void
+ {
+ asm volatile("sti");
+ }
- auto clear_interrupt_flag() -> void { asm volatile("cli"); }
+ auto clear_interrupt_flag() -> void
+ {
+ asm volatile("cli");
+ }
} // namespace teachos::arch::kernel::cpu