From 41eccacd51376b70069fbaae49402f5acd68d8e1 Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Wed, 9 Aug 2023 23:52:16 +0200 Subject: [PATCH] hbldr: fix DSPmem mapping and give access to all Arm11 IO regs --- sysmodules/loader/source/hbldr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sysmodules/loader/source/hbldr.c b/sysmodules/loader/source/hbldr.c index e1c32fc..c1d9ccf 100644 --- a/sysmodules/loader/source/hbldr.c +++ b/sysmodules/loader/source/hbldr.c @@ -175,11 +175,15 @@ static const u32 kernelCaps[] = // Normal applications only have access to 0x1FF50000-0x1FF58000, 0x1FF70000-0x1FF78000, // however we can load unsigned DSP firmware binaries. 0xFF81FF00, // RW static range mapping: 0x1FF00000 (DSP RAM, start) - 0xFF81FF80, // RW static range mapping: 0x1FF80000 (DSP RAM, end) + 0xFF91FF80, // RW static range mapping: 0x1FF80000 (DSP RAM, end) 0xFF91F000, // RO static range mapping: 0x1F000000 (VRAM, start) 0xFF91F600, // RO static range mapping: 0x1F600000 (VRAM, end) + // Give access to all Arm11-accessible IO + 0xFF81EC00, // RW IO range mapping: 0x1EC00000 (PA 0x10100000, start) + 0xFF81F000, // RW IO range mapping: 0x10500000 (PA 0x10500000, end) + 0xFF002109, // Exflags: APPLICATION memtype + "Shared page writing" + "Allow debug" + "Access core2" 0xFE000200, // Handle table size: 0x200