Cleanup Thread constructor

This commit is contained in:
Drew Galbraith 2023-06-06 18:40:32 -07:00
parent 41d25a7b46
commit d9b17d96d7
3 changed files with 3 additions and 4 deletions

View file

@ -24,8 +24,7 @@ SharedPtr<Thread> Thread::RootThread(Process& root_proc) {
return new Thread(root_proc);
}
Thread::Thread(Process& proc, uint64_t tid, uint64_t entry)
: process_(proc), id_(tid), rip_(entry) {
Thread::Thread(Process& proc, uint64_t tid) : process_(proc), id_(tid) {
uint64_t* stack_ptr = proc.vmm().AllocateKernelStack();
// 0: rip
*(stack_ptr) = reinterpret_cast<uint64_t>(thread_init);