kernel: Move stack region outside of application heap.

This commit is contained in:
bunnei 2018-03-14 22:08:15 -04:00
parent 69ee9edd8d
commit 8581404482
6 changed files with 6 additions and 11 deletions

View file

@ -357,7 +357,7 @@ SharedPtr<Thread> SetupMainThread(VAddr entry_point, u32 priority,
// Initialize new "main" thread
auto thread_res = Thread::Create("main", entry_point, priority, 0, THREADPROCESSORID_0,
Memory::HEAP_VADDR_END, owner_process);
Memory::STACK_VADDR_END, owner_process);
SharedPtr<Thread> thread = std::move(thread_res).Unwrap();