aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/pre/src/memory/main.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/memory/main.cpp
parentc2b0bdfe3b725166f16c742cdaca7969052df382 (diff)
downloadkernel-b157e2c472d8bd67ac1656404a6a6ee821260f4b.tar.xz
kernel-b157e2c472d8bd67ac1656404a6a6ee821260f4b.zip
chore: reformat source code
Diffstat (limited to 'arch/x86_64/pre/src/memory/main.cpp')
-rw-r--r--arch/x86_64/pre/src/memory/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/pre/src/memory/main.cpp b/arch/x86_64/pre/src/memory/main.cpp
index 2746a71..b5980db 100644
--- a/arch/x86_64/pre/src/memory/main.cpp
+++ b/arch/x86_64/pre/src/memory/main.cpp
@@ -15,7 +15,7 @@ namespace teachos::arch::memory
{
namespace
{
- static std::optional<allocator::area_frame_allocator> frame_allocator;
+ std::optional<allocator::area_frame_allocator> static frame_allocator;
auto create_frame_allocator(multiboot::memory_information const & memory_information)
-> allocator::area_frame_allocator &
@@ -54,7 +54,7 @@ namespace teachos::arch::memory
auto initialize_memory_management() -> void
{
- static bool has_been_called = false;
+ bool static has_been_called = false;
arch::exception_handling::assert(!has_been_called,
"[Initialization] Memory management has already been initialized");
has_been_called = true;