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/ldr | |
| 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/ldr')
| -rw-r--r-- | src/core/hle/service/ldr/ldr.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp index c82e189f4..6de96ed5b 100644 --- a/src/core/hle/service/ldr/ldr.cpp +++ b/src/core/hle/service/ldr/ldr.cpp | |||
| @@ -9,10 +9,10 @@ | |||
| 9 | #include "common/hex_util.h" | 9 | #include "common/hex_util.h" |
| 10 | #include "common/scope_exit.h" | 10 | #include "common/scope_exit.h" |
| 11 | #include "core/core.h" | 11 | #include "core/core.h" |
| 12 | #include "core/hle/ipc_helpers.h" | ||
| 13 | #include "core/hle/kernel/k_page_table.h" | 12 | #include "core/hle/kernel/k_page_table.h" |
| 14 | #include "core/hle/kernel/svc_results.h" | 13 | #include "core/hle/kernel/svc_results.h" |
| 15 | #include "core/hle/kernel/svc_types.h" | 14 | #include "core/hle/kernel/svc_types.h" |
| 15 | #include "core/hle/service/ipc_helpers.h" | ||
| 16 | #include "core/hle/service/ldr/ldr.h" | 16 | #include "core/hle/service/ldr/ldr.h" |
| 17 | #include "core/hle/service/server_manager.h" | 17 | #include "core/hle/service/server_manager.h" |
| 18 | #include "core/hle/service/service.h" | 18 | #include "core/hle/service/service.h" |
| @@ -175,7 +175,7 @@ public: | |||
| 175 | RegisterHandlers(functions); | 175 | RegisterHandlers(functions); |
| 176 | } | 176 | } |
| 177 | 177 | ||
| 178 | void RegisterModuleInfo(Kernel::HLERequestContext& ctx) { | 178 | void RegisterModuleInfo(HLERequestContext& ctx) { |
| 179 | struct Parameters { | 179 | struct Parameters { |
| 180 | u64_le process_id; | 180 | u64_le process_id; |
| 181 | u64_le nrr_address; | 181 | u64_le nrr_address; |
| @@ -272,7 +272,7 @@ public: | |||
| 272 | rb.Push(ResultSuccess); | 272 | rb.Push(ResultSuccess); |
| 273 | } | 273 | } |
| 274 | 274 | ||
| 275 | void UnregisterModuleInfo(Kernel::HLERequestContext& ctx) { | 275 | void UnregisterModuleInfo(HLERequestContext& ctx) { |
| 276 | IPC::RequestParser rp{ctx}; | 276 | IPC::RequestParser rp{ctx}; |
| 277 | const auto pid = rp.Pop<u64>(); | 277 | const auto pid = rp.Pop<u64>(); |
| 278 | const auto nrr_address = rp.Pop<VAddr>(); | 278 | const auto nrr_address = rp.Pop<VAddr>(); |
| @@ -446,7 +446,7 @@ public: | |||
| 446 | data_start, bss_end_addr - data_start, Kernel::Svc::MemoryPermission::ReadWrite); | 446 | data_start, bss_end_addr - data_start, Kernel::Svc::MemoryPermission::ReadWrite); |
| 447 | } | 447 | } |
| 448 | 448 | ||
| 449 | void LoadModule(Kernel::HLERequestContext& ctx) { | 449 | void LoadModule(HLERequestContext& ctx) { |
| 450 | struct Parameters { | 450 | struct Parameters { |
| 451 | u64_le process_id; | 451 | u64_le process_id; |
| 452 | u64_le image_address; | 452 | u64_le image_address; |
| @@ -592,7 +592,7 @@ public: | |||
| 592 | return ResultSuccess; | 592 | return ResultSuccess; |
| 593 | } | 593 | } |
| 594 | 594 | ||
| 595 | void UnloadModule(Kernel::HLERequestContext& ctx) { | 595 | void UnloadModule(HLERequestContext& ctx) { |
| 596 | if (!initialized) { | 596 | if (!initialized) { |
| 597 | LOG_ERROR(Service_LDR, "LDR:RO not initialized before use!"); | 597 | LOG_ERROR(Service_LDR, "LDR:RO not initialized before use!"); |
| 598 | IPC::ResponseBuilder rb{ctx, 2}; | 598 | IPC::ResponseBuilder rb{ctx, 2}; |
| @@ -638,7 +638,7 @@ public: | |||
| 638 | rb.Push(result); | 638 | rb.Push(result); |
| 639 | } | 639 | } |
| 640 | 640 | ||
| 641 | void Initialize(Kernel::HLERequestContext& ctx) { | 641 | void Initialize(HLERequestContext& ctx) { |
| 642 | LOG_WARNING(Service_LDR, "(STUBBED) called"); | 642 | LOG_WARNING(Service_LDR, "(STUBBED) called"); |
| 643 | 643 | ||
| 644 | initialized = true; | 644 | initialized = true; |