diff options
author | Wunkolo <Wunkolo@gmail.com> | 2021-06-23 23:18:27 +0200 |
---|---|---|
committer | Wunkolo <Wunkolo@gmail.com> | 2021-06-24 18:27:40 +0200 |
commit | 4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c (patch) | |
tree | 591792bc47e26bc812e753b0891aab94a8a88352 /src/core/hle/kernel/k_memory_layout.board.nintendo_nx.cpp | |
parent | Merge pull request #6504 from Kelebek1/samples-played (diff) | |
download | yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.tar yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.tar.gz yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.tar.bz2 yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.tar.lz yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.tar.xz yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.tar.zst yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_memory_layout.board.nintendo_nx.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_memory_layout.board.nintendo_nx.cpp b/src/core/hle/kernel/k_memory_layout.board.nintendo_nx.cpp index a78551291..af652af58 100644 --- a/src/core/hle/kernel/k_memory_layout.board.nintendo_nx.cpp +++ b/src/core/hle/kernel/k_memory_layout.board.nintendo_nx.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include "common/alignment.h" +#include "common/literals.h" #include "core/hle/kernel/k_memory_layout.h" #include "core/hle/kernel/k_memory_manager.h" #include "core/hle/kernel/k_system_control.h" @@ -12,8 +13,10 @@ namespace Kernel { namespace { +using namespace Common::Literals; + constexpr size_t CarveoutAlignment = 0x20000; -constexpr size_t CarveoutSizeMax = (512ULL * 1024 * 1024) - CarveoutAlignment; +constexpr size_t CarveoutSizeMax = (512_MiB) - CarveoutAlignment; bool SetupPowerManagementControllerMemoryRegion(KMemoryLayout& memory_layout) { // Above firmware 2.0.0, the PMC is not mappable. |