mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Kernel: Mark a handful of things in kmalloc.cpp as READONLY_AFTER_INIT
This commit is contained in:
parent
7a78a4915a
commit
99f596fd51
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue