NVDRV: Implement sessions and initial implementation of SMMU

This commit is contained in:
Fernando Sahmkow
2023-12-24 18:20:02 +01:00
committed by Liam
parent 2f0418c101
commit 7a9d1ad2f8
37 changed files with 260 additions and 100 deletions

View File

@ -19,6 +19,8 @@
#include "core/hle/ipc.h"
#include "core/hle/kernel/k_handle_table.h"
#include "core/hle/kernel/svc_common.h"
#include "core/hle/kernel/k_auto_object.h"
#include "core/hle/kernel/k_handle_table.h"
union Result;
@ -41,6 +43,8 @@ class KernelCore;
class KHandleTable;
class KProcess;
class KServerSession;
template <typename T>
class KScopedAutoObject;
class KThread;
} // namespace Kernel
@ -373,6 +377,10 @@ public:
return nullptr;
}
Kernel::KScopedAutoObject<Kernel::KAutoObject> GetObjectFromHandle(u32 handle) {
return GetClientHandleTable().GetObjectForIpc(handle, thread);
}
[[nodiscard]] std::shared_ptr<SessionRequestManager> GetManager() const {
return manager.lock();
}