1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Reduce kernel stack size to 8 KiB.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-08-22 16:17:24 +02:00
parent d71179b540
commit e875babf8e

View file

@ -128,7 +128,7 @@ Thread* CreateKernelThread(Process* process, CPU::InterruptRegisters* regs)
Thread* CreateKernelThread(Process* process, ThreadEntry entry, void* user,
size_t stacksize)
{
const size_t DEFAULT_KERNEL_STACK_SIZE = 512 * 1024UL;
const size_t DEFAULT_KERNEL_STACK_SIZE = 8 * 1024UL;
if ( !stacksize )
stacksize = DEFAULT_KERNEL_STACK_SIZE;
uint8_t* stack = new uint8_t[stacksize];