diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-28 13:45:57 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-28 15:55:00 +0200 |
commit | d67fd37847597a24c75f3d88e77797a66ddcc06a (patch) | |
tree | 1291611f7d797ba1c61f879474ab9d7957e60944 /Kernel | |
parent | e56a0d6af70d88a576f481f360233779d4126f4a (diff) | |
download | serenity-d67fd37847597a24c75f3d88e77797a66ddcc06a.zip |
Kernel: Increase kmalloc eternal heap to 3MiB
The kernel wouldn't boot reliably on x86_64 with just 2MiB.
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 68e6fa3faa..61c80c4055 100644 --- a/Kernel/Heap/kmalloc.cpp +++ b/Kernel/Heap/kmalloc.cpp @@ -27,7 +27,7 @@ #define CHUNK_SIZE 32 #define POOL_SIZE (2 * MiB) -#define ETERNAL_RANGE_SIZE (2 * MiB) +#define ETERNAL_RANGE_SIZE (3 * MiB) namespace std { const nothrow_t nothrow; @@ -228,7 +228,7 @@ UNMAP_AFTER_INIT void kmalloc_init() s_lock.initialize(); s_next_eternal_ptr = kmalloc_eternal_heap; - s_end_of_eternal_range = s_next_eternal_ptr + sizeof(kmalloc_pool_heap); + s_end_of_eternal_range = s_next_eternal_ptr + sizeof(kmalloc_eternal_heap); } void* kmalloc_eternal(size_t size) |