Kernel: Increase userspace stack size and decrease kernel stack
Quake II needs a lot of stack, it was overflowing my 256 KiB stack so this patch doubles that, so Quake II can run! Also every thread had 256 KiB kernel stack. This is unnecessarily large and now dropped to 32 KiB.
This commit is contained in:
@@ -103,8 +103,8 @@ namespace Kernel
|
||||
// {kernel,userspace}_stack has to be destroyed before page table
|
||||
BAN::UniqPtr<PageTable> m_keep_alive_page_table;
|
||||
|
||||
static constexpr size_t m_kernel_stack_size { PAGE_SIZE * 64 };
|
||||
static constexpr size_t m_userspace_stack_size { PAGE_SIZE * 64 };
|
||||
static constexpr size_t m_kernel_stack_size { PAGE_SIZE * 8 };
|
||||
static constexpr size_t m_userspace_stack_size { PAGE_SIZE * 128 };
|
||||
BAN::UniqPtr<VirtualRange> m_kernel_stack;
|
||||
BAN::UniqPtr<VirtualRange> m_userspace_stack;
|
||||
const pid_t m_tid { 0 };
|
||||
|
||||
Reference in New Issue
Block a user