浏览代码

Kernel: Increase kmalloc eternal heap to 3MiB

The kernel wouldn't boot reliably on x86_64 with just 2MiB.
Gunnar Beutner 4 年之前
父节点
当前提交
d67fd37847
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Kernel/Heap/kmalloc.cpp

+ 2 - 2
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)