kernel/process: Move main thread stack allocation to its own function

Keeps this particular set of behavior isolated to its own function.
This commit is contained in:
Lioncash 2019-07-07 04:13:56 -04:00
parent 9e689a81f8
commit eb6f55d880
2 changed files with 17 additions and 12 deletions

View file

@ -280,6 +280,9 @@ private:
/// a process signal.
void ChangeStatus(ProcessStatus new_status);
/// Allocates the main thread stack for the process, given the stack size in bytes.
void AllocateMainThreadStack(u64 stack_size);
/// Memory manager for this process.
Kernel::VMManager vm_manager;