summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-05-01 06:36:00 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-05-10 06:44:00 +0200
commitb4a93cfddecdb939562e56d7609657d2f14b6702 (patch)
tree75da1f521209b74fa82a982356b878bd1c475562 /src/core/hle/kernel
parentMemory: Add constants for the n3DS additional RAM (diff)
downloadyuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.gz
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.bz2
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.lz
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.xz
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.tar.zst
yuzu-b4a93cfddecdb939562e56d7609657d2f14b6702.zip
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) {
.MoveFrom();
address_space.Reprotect(shared_page_vma, VMAPermission::Read);
- AudioCore::AddAddressSpace(address_space);
+ auto& dsp_ram = AudioCore::GetDspMemory();
+ auto dsp_vma = address_space
+ .MapBackingMemory(DSP_RAM_VADDR, dsp_ram.data(), dsp_ram.size(),
+ Kernel::MemoryState::IO)
+ .MoveFrom();
+ address_space.Reprotect(dsp_vma, Kernel::VMAPermission::ReadWrite);
}
} // namespace