diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-14 17:49:05 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-14 18:12:00 +0100 |
commit | 99f596fd51aba9aaee5504ff91708816903e1ca7 (patch) | |
tree | 0e5723bb961cb56600e6ba6f3577aab648b9d117 /Kernel | |
parent | 7a78a4915a365645b9d9d524c09c0946bb288ac8 (diff) | |
download | serenity-99f596fd51aba9aaee5504ff91708816903e1ca7.zip |
Kernel: Mark a handful of things in kmalloc.cpp as READONLY_AFTER_INIT
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Heap/kmalloc.cpp | 4 |
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() { |