diff options
| author | 2017-06-21 20:34:12 +0300 | |
|---|---|---|
| committer | 2017-06-21 20:34:12 +0300 | |
| commit | c4f0927a62b0f31cf9ab6c0fe760c491e6c9b3db (patch) | |
| tree | a861dcb99fc789a22a6df9878fceae3b63cf0a18 /src | |
| parent | Merge pull request #2790 from yuriks/remove-movefrom (diff) | |
| parent | Memory: Add enum definitions for the n3DS FCRAM size (diff) | |
| download | yuzu-c4f0927a62b0f31cf9ab6c0fe760c491e6c9b3db.tar.gz yuzu-c4f0927a62b0f31cf9ab6c0fe760c491e6c9b3db.tar.xz yuzu-c4f0927a62b0f31cf9ab6c0fe760c491e6c9b3db.zip | |
Merge pull request #2789 from yuriks/misc-kernel
Trivial no-op additions
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/kernel/process.cpp | 2 | ||||
| -rw-r--r-- | src/core/memory.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 1c31ec950..522ad2333 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp | |||
| @@ -151,6 +151,8 @@ void Process::Run(s32 main_thread_priority, u32 stack_size) { | |||
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | VAddr Process::GetLinearHeapAreaAddress() const { | 153 | VAddr Process::GetLinearHeapAreaAddress() const { |
| 154 | // Starting from system version 8.0.0 a new linear heap layout is supported to allow usage of | ||
| 155 | // the extra RAM in the n3DS. | ||
| 154 | return kernel_version < 0x22C ? Memory::LINEAR_HEAP_VADDR : Memory::NEW_LINEAR_HEAP_VADDR; | 156 | return kernel_version < 0x22C ? Memory::LINEAR_HEAP_VADDR : Memory::NEW_LINEAR_HEAP_VADDR; |
| 155 | } | 157 | } |
| 156 | 158 | ||
diff --git a/src/core/memory.h b/src/core/memory.h index 802aa465e..71fb278ad 100644 --- a/src/core/memory.h +++ b/src/core/memory.h | |||
| @@ -55,8 +55,10 @@ enum : PAddr { | |||
| 55 | 55 | ||
| 56 | /// Main FCRAM | 56 | /// Main FCRAM |
| 57 | FCRAM_PADDR = 0x20000000, | 57 | FCRAM_PADDR = 0x20000000, |
| 58 | FCRAM_SIZE = 0x08000000, ///< FCRAM size (128MB) | 58 | FCRAM_SIZE = 0x08000000, ///< FCRAM size on the Old 3DS (128MB) |
| 59 | FCRAM_N3DS_SIZE = 0x10000000, ///< FCRAM size on the New 3DS (256MB) | ||
| 59 | FCRAM_PADDR_END = FCRAM_PADDR + FCRAM_SIZE, | 60 | FCRAM_PADDR_END = FCRAM_PADDR + FCRAM_SIZE, |
| 61 | FCRAM_N3DS_PADDR_END = FCRAM_PADDR + FCRAM_N3DS_SIZE, | ||
| 60 | }; | 62 | }; |
| 61 | 63 | ||
| 62 | /// Virtual user-space memory regions | 64 | /// Virtual user-space memory regions |