From b4a93cfddecdb939562e56d7609657d2f14b6702 Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Sun, 30 Apr 2017 21:36:00 -0700 Subject: DSP: Create backing memory for entire DSP RAM Also move address space mapping out of video_core. --- src/core/hle/kernel/memory.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core/hle') 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 -- cgit v1.2.3