kernel: use GetCurrentProcess
This commit is contained in:
parent
e24cd10a63
commit
832e1e2ca4
34 changed files with 147 additions and 128 deletions
|
@ -1266,6 +1266,14 @@ KThread& GetCurrentThread(KernelCore& kernel) {
|
|||
return *GetCurrentThreadPointer(kernel);
|
||||
}
|
||||
|
||||
KProcess* GetCurrentProcessPointer(KernelCore& kernel) {
|
||||
return GetCurrentThread(kernel).GetOwnerProcess();
|
||||
}
|
||||
|
||||
KProcess& GetCurrentProcess(KernelCore& kernel) {
|
||||
return *GetCurrentProcessPointer(kernel);
|
||||
}
|
||||
|
||||
s32 GetCurrentCoreId(KernelCore& kernel) {
|
||||
return GetCurrentThread(kernel).GetCurrentCore();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue