mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 18:23:39 +00:00
Kernel: Increase kmalloc eternal heap to 3MiB
The kernel wouldn't boot reliably on x86_64 with just 2MiB.
This commit is contained in:
parent
e56a0d6af7
commit
d67fd37847
Notes:
sideshowbarker
2024-07-18 11:25:04 +09:00
Author: https://github.com/gunnarbeutner
Commit: d67fd37847
Pull-request: https://github.com/SerenityOS/serenity/pull/8290
Reviewed-by: https://github.com/Hendiadyoin1
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
#define CHUNK_SIZE 32
|
#define CHUNK_SIZE 32
|
||||||
#define POOL_SIZE (2 * MiB)
|
#define POOL_SIZE (2 * MiB)
|
||||||
#define ETERNAL_RANGE_SIZE (2 * MiB)
|
#define ETERNAL_RANGE_SIZE (3 * MiB)
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
const nothrow_t nothrow;
|
const nothrow_t nothrow;
|
||||||
|
@ -228,7 +228,7 @@ UNMAP_AFTER_INIT void kmalloc_init()
|
||||||
s_lock.initialize();
|
s_lock.initialize();
|
||||||
|
|
||||||
s_next_eternal_ptr = kmalloc_eternal_heap;
|
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)
|
void* kmalloc_eternal(size_t size)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue