summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2017-04-30 21:36:00 -0700
committerGravatar Yuri Kunde Schlesner2017-05-09 21:44:00 -0700
commitb4a93cfddecdb939562e56d7609657d2f14b6702 (patch)
tree75da1f521209b74fa82a982356b878bd1c475562 /src/core/hle/kernel
parentMemory: Add constants for the n3DS additional RAM (diff)
downloadyuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.gz
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.xz
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.zip
DSP: Create backing memory for entire DSP RAM
Also move address space mapping out of video_core.
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/memory.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/kernel/memory.cpp b/src/core/hle/kernel/memory.cpp
index 33c165197..be7c7513f 100644
--- a/src/core/hle/kernel/memory.cpp
+++ b/src/core/hle/kernel/memory.cpp
@@ -137,7 +137,12 @@ void InitLegacyAddressSpace(Kernel::VMManager& address_space) {
137 .MoveFrom(); 137 .MoveFrom();
138 address_space.Reprotect(shared_page_vma, VMAPermission::Read); 138 address_space.Reprotect(shared_page_vma, VMAPermission::Read);
139 139
140 AudioCore::AddAddressSpace(address_space); 140 auto& dsp_ram = AudioCore::GetDspMemory();
141 auto dsp_vma = address_space
142 .MapBackingMemory(DSP_RAM_VADDR, dsp_ram.data(), dsp_ram.size(),
143 Kernel::MemoryState::IO)
144 .MoveFrom();
145 address_space.Reprotect(dsp_vma, Kernel::VMAPermission::ReadWrite);
141} 146}
142 147
143} // namespace 148} // namespace