diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-11 20:41:48 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-06 01:40:51 +0200 |
commit | 269d233a9421e43c2383fe29603b3dfbdaa900e9 (patch) | |
tree | 7bcfd27ba2a9eee20d696307240108f40320ae04 /src/core/hle/kernel/k_page_table.cpp | |
parent | hle: kernel: KThread: Add missing resource hint release. (diff) | |
download | yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.tar yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.tar.gz yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.tar.bz2 yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.tar.lz yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.tar.xz yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.tar.zst yuzu-269d233a9421e43c2383fe29603b3dfbdaa900e9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_page_table.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_page_table.cpp b/src/core/hle/kernel/k_page_table.cpp index d09d5ce48..5f60b95cd 100644 --- a/src/core/hle/kernel/k_page_table.cpp +++ b/src/core/hle/kernel/k_page_table.cpp @@ -420,7 +420,7 @@ ResultCode KPageTable::MapPhysicalMemory(VAddr addr, std::size_t size) { remaining_size); if (!memory_reservation.Succeeded()) { LOG_ERROR(Kernel, "Could not reserve remaining {:X} bytes", remaining_size); - return ResultResourceLimitedExceeded; + return ResultLimitReached; } KPageLinkedList page_linked_list; @@ -578,7 +578,7 @@ ResultCode KPageTable::Unmap(VAddr dst_addr, VAddr src_addr, std::size_t size) { AddRegionToPages(dst_addr, num_pages, dst_pages); if (!dst_pages.IsEqual(src_pages)) { - return ResultInvalidMemoryRange; + return ResultInvalidMemoryRegion; } { @@ -790,7 +790,7 @@ ResultVal<VAddr> KPageTable::SetHeapSize(std::size_t size) { if (!memory_reservation.Succeeded()) { LOG_ERROR(Kernel, "Could not reserve heap extension of size {:X} bytes", delta); - return ResultResourceLimitedExceeded; + return ResultLimitReached; } KPageLinkedList page_linked_list; |