summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-14 17:49:05 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-14 18:12:00 +0100
commit99f596fd51aba9aaee5504ff91708816903e1ca7 (patch)
tree0e5723bb961cb56600e6ba6f3577aab648b9d117
parent7a78a4915a365645b9d9d524c09c0946bb288ac8 (diff)
downloadserenity-99f596fd51aba9aaee5504ff91708816903e1ca7.zip
Kernel: Mark a handful of things in kmalloc.cpp as READONLY_AFTER_INIT
-rw-r--r--Kernel/Heap/kmalloc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Heap/kmalloc.cpp b/Kernel/Heap/kmalloc.cpp
index 36b7833f38..6b17a52538 100644
--- a/Kernel/Heap/kmalloc.cpp
+++ b/Kernel/Heap/kmalloc.cpp
@@ -186,7 +186,7 @@ struct KmallocGlobalHeap {
}
};
-static KmallocGlobalHeap* g_kmalloc_global;
+READONLY_AFTER_INIT static KmallocGlobalHeap* g_kmalloc_global;
static u8 g_kmalloc_global_heap[sizeof(KmallocGlobalHeap)];
// Treat the heap as logically separate from .bss
@@ -199,7 +199,7 @@ static size_t g_kfree_call_count;
bool g_dump_kmalloc_stacks;
static u8* s_next_eternal_ptr;
-static u8* s_end_of_eternal_range;
+READONLY_AFTER_INIT static u8* s_end_of_eternal_range;
static void kmalloc_allocate_backup_memory()
{