From 537780ee1e063934917175e027248107d925b53a Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 12 Jun 2023 01:02:19 +0300 Subject: [PATCH] Kernel: allocate thread stacks from 0x300000 onwards I had a problem where thread stack was overlapping with elf loading --- kernel/kernel/Memory/VirtualRange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kernel/Memory/VirtualRange.cpp b/kernel/kernel/Memory/VirtualRange.cpp index 2e5e668e..b182c8a2 100644 --- a/kernel/kernel/Memory/VirtualRange.cpp +++ b/kernel/kernel/Memory/VirtualRange.cpp @@ -21,7 +21,7 @@ namespace Kernel if (vaddr == 0) { - vaddr = page_table.get_free_contiguous_pages(size / PAGE_SIZE, 0x400000); + vaddr = page_table.get_free_contiguous_pages(size / PAGE_SIZE, 0x300000); ASSERT(vaddr); }