diff options
| author | 2023-02-19 14:42:12 -0500 | |
|---|---|---|
| committer | 2023-03-01 10:39:49 -0500 | |
| commit | 65be230fdda302b25447f2f09b06e3238bd09e79 (patch) | |
| tree | 68250d7bc8151041b236dcd79483df98938952cd /src/core/hle/service/spl | |
| parent | sm:: remove unused member (diff) | |
| download | yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.gz yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.xz yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.zip | |
service: move hle_ipc from kernel
Diffstat (limited to 'src/core/hle/service/spl')
| -rw-r--r-- | src/core/hle/service/spl/spl_module.cpp | 16 | ||||
| -rw-r--r-- | src/core/hle/service/spl/spl_module.h | 14 |
2 files changed, 15 insertions, 15 deletions
diff --git a/src/core/hle/service/spl/spl_module.cpp b/src/core/hle/service/spl/spl_module.cpp index 31679e1bb..0227d4393 100644 --- a/src/core/hle/service/spl/spl_module.cpp +++ b/src/core/hle/service/spl/spl_module.cpp | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | #include "common/logging/log.h" | 8 | #include "common/logging/log.h" |
| 9 | #include "common/settings.h" | 9 | #include "common/settings.h" |
| 10 | #include "core/hle/api_version.h" | 10 | #include "core/hle/api_version.h" |
| 11 | #include "core/hle/ipc_helpers.h" | 11 | #include "core/hle/service/ipc_helpers.h" |
| 12 | #include "core/hle/service/server_manager.h" | 12 | #include "core/hle/service/server_manager.h" |
| 13 | #include "core/hle/service/spl/csrng.h" | 13 | #include "core/hle/service/spl/csrng.h" |
| 14 | #include "core/hle/service/spl/spl.h" | 14 | #include "core/hle/service/spl/spl.h" |
| @@ -23,7 +23,7 @@ Module::Interface::Interface(Core::System& system_, std::shared_ptr<Module> modu | |||
| 23 | 23 | ||
| 24 | Module::Interface::~Interface() = default; | 24 | Module::Interface::~Interface() = default; |
| 25 | 25 | ||
| 26 | void Module::Interface::GetConfig(Kernel::HLERequestContext& ctx) { | 26 | void Module::Interface::GetConfig(HLERequestContext& ctx) { |
| 27 | IPC::RequestParser rp{ctx}; | 27 | IPC::RequestParser rp{ctx}; |
| 28 | const auto config_item = rp.PopEnum<ConfigItem>(); | 28 | const auto config_item = rp.PopEnum<ConfigItem>(); |
| 29 | 29 | ||
| @@ -48,21 +48,21 @@ void Module::Interface::GetConfig(Kernel::HLERequestContext& ctx) { | |||
| 48 | rb.Push(*smc_result); | 48 | rb.Push(*smc_result); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | void Module::Interface::ModularExponentiate(Kernel::HLERequestContext& ctx) { | 51 | void Module::Interface::ModularExponentiate(HLERequestContext& ctx) { |
| 52 | UNIMPLEMENTED_MSG("ModularExponentiate is not implemented!"); | 52 | UNIMPLEMENTED_MSG("ModularExponentiate is not implemented!"); |
| 53 | 53 | ||
| 54 | IPC::ResponseBuilder rb{ctx, 2}; | 54 | IPC::ResponseBuilder rb{ctx, 2}; |
| 55 | rb.Push(ResultSecureMonitorNotImplemented); | 55 | rb.Push(ResultSecureMonitorNotImplemented); |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | void Module::Interface::SetConfig(Kernel::HLERequestContext& ctx) { | 58 | void Module::Interface::SetConfig(HLERequestContext& ctx) { |
| 59 | UNIMPLEMENTED_MSG("SetConfig is not implemented!"); | 59 | UNIMPLEMENTED_MSG("SetConfig is not implemented!"); |
| 60 | 60 | ||
| 61 | IPC::ResponseBuilder rb{ctx, 2}; | 61 | IPC::ResponseBuilder rb{ctx, 2}; |
| 62 | rb.Push(ResultSecureMonitorNotImplemented); | 62 | rb.Push(ResultSecureMonitorNotImplemented); |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | void Module::Interface::GenerateRandomBytes(Kernel::HLERequestContext& ctx) { | 65 | void Module::Interface::GenerateRandomBytes(HLERequestContext& ctx) { |
| 66 | LOG_DEBUG(Service_SPL, "called"); | 66 | LOG_DEBUG(Service_SPL, "called"); |
| 67 | 67 | ||
| 68 | const std::size_t size = ctx.GetWriteBufferSize(); | 68 | const std::size_t size = ctx.GetWriteBufferSize(); |
| @@ -77,21 +77,21 @@ void Module::Interface::GenerateRandomBytes(Kernel::HLERequestContext& ctx) { | |||
| 77 | rb.Push(ResultSuccess); | 77 | rb.Push(ResultSuccess); |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | void Module::Interface::IsDevelopment(Kernel::HLERequestContext& ctx) { | 80 | void Module::Interface::IsDevelopment(HLERequestContext& ctx) { |
| 81 | UNIMPLEMENTED_MSG("IsDevelopment is not implemented!"); | 81 | UNIMPLEMENTED_MSG("IsDevelopment is not implemented!"); |
| 82 | 82 | ||
| 83 | IPC::ResponseBuilder rb{ctx, 2}; | 83 | IPC::ResponseBuilder rb{ctx, 2}; |
| 84 | rb.Push(ResultSecureMonitorNotImplemented); | 84 | rb.Push(ResultSecureMonitorNotImplemented); |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | void Module::Interface::SetBootReason(Kernel::HLERequestContext& ctx) { | 87 | void Module::Interface::SetBootReason(HLERequestContext& ctx) { |
| 88 | UNIMPLEMENTED_MSG("SetBootReason is not implemented!"); | 88 | UNIMPLEMENTED_MSG("SetBootReason is not implemented!"); |
| 89 | 89 | ||
| 90 | IPC::ResponseBuilder rb{ctx, 2}; | 90 | IPC::ResponseBuilder rb{ctx, 2}; |
| 91 | rb.Push(ResultSecureMonitorNotImplemented); | 91 | rb.Push(ResultSecureMonitorNotImplemented); |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | void Module::Interface::GetBootReason(Kernel::HLERequestContext& ctx) { | 94 | void Module::Interface::GetBootReason(HLERequestContext& ctx) { |
| 95 | UNIMPLEMENTED_MSG("GetBootReason is not implemented!"); | 95 | UNIMPLEMENTED_MSG("GetBootReason is not implemented!"); |
| 96 | 96 | ||
| 97 | IPC::ResponseBuilder rb{ctx, 2}; | 97 | IPC::ResponseBuilder rb{ctx, 2}; |
diff --git a/src/core/hle/service/spl/spl_module.h b/src/core/hle/service/spl/spl_module.h index baed9efd7..e074e115d 100644 --- a/src/core/hle/service/spl/spl_module.h +++ b/src/core/hle/service/spl/spl_module.h | |||
| @@ -23,13 +23,13 @@ public: | |||
| 23 | ~Interface() override; | 23 | ~Interface() override; |
| 24 | 24 | ||
| 25 | // General | 25 | // General |
| 26 | void GetConfig(Kernel::HLERequestContext& ctx); | 26 | void GetConfig(HLERequestContext& ctx); |
| 27 | void ModularExponentiate(Kernel::HLERequestContext& ctx); | 27 | void ModularExponentiate(HLERequestContext& ctx); |
| 28 | void SetConfig(Kernel::HLERequestContext& ctx); | 28 | void SetConfig(HLERequestContext& ctx); |
| 29 | void GenerateRandomBytes(Kernel::HLERequestContext& ctx); | 29 | void GenerateRandomBytes(HLERequestContext& ctx); |
| 30 | void IsDevelopment(Kernel::HLERequestContext& ctx); | 30 | void IsDevelopment(HLERequestContext& ctx); |
| 31 | void SetBootReason(Kernel::HLERequestContext& ctx); | 31 | void SetBootReason(HLERequestContext& ctx); |
| 32 | void GetBootReason(Kernel::HLERequestContext& ctx); | 32 | void GetBootReason(HLERequestContext& ctx); |
| 33 | 33 | ||
| 34 | protected: | 34 | protected: |
| 35 | std::shared_ptr<Module> module; | 35 | std::shared_ptr<Module> module; |