sched: use THREAD_DEFAULT_KSTACK_SIZE rather than hardcoding 10*PAGE_SIZE

This commit is contained in:
Matheus
2022-12-31 01:12:13 -03:00
parent 646f5001d0
commit 5ea50fee28
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ void consoledev_init(){
if(ringbuffer_init(&input, THREAD_BUFF_MAX))
_panic("Failed to initialise console ringbuffer", 0);
thread = sched_newkthread(console_thread, 4096*10, true, THREAD_PRIORITY_KERNEL);
thread = sched_newkthread(console_thread, THREAD_DEFAULT_KSTACK_SIZE, true, THREAD_PRIORITY_KERNEL);
if(!thread)
_panic("Failed to initialise console thread", 0);