From 1e04fe9d63274a96940252bcb5f2a4e48d7fc905 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 15 Nov 2020 08:43:55 -0800 Subject: [PATCH] exo: map stack region for mariko-only program --- .../include/exosphere/secmon/secmon_memory_layout.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libexosphere/include/exosphere/secmon/secmon_memory_layout.hpp b/libexosphere/include/exosphere/secmon/secmon_memory_layout.hpp index a1208ede..620b0886 100644 --- a/libexosphere/include/exosphere/secmon/secmon_memory_layout.hpp +++ b/libexosphere/include/exosphere/secmon/secmon_memory_layout.hpp @@ -199,6 +199,10 @@ namespace ams::secmon { constexpr inline const MemoryRegion MemoryRegionPhysicalTzramMarikoProgram(UINT64_C(0x7C020000), 0x20000); static_assert(MemoryRegionPhysicalTzramMariko.Contains(MemoryRegionPhysicalTzramMarikoProgram)); + constexpr inline const MemoryRegion MemoryRegionVirtualTzramMarikoProgramStack(UINT64_C(0x1F00F4000), 0x8000); + constexpr inline const MemoryRegion MemoryRegionPhysicalTzramMarikoProgramStack(UINT64_C(0x7C040000), 0x8000); + static_assert(MemoryRegionPhysicalTzramMariko.Contains(MemoryRegionPhysicalTzramMarikoProgramStack)); + constexpr inline const MemoryRegion MemoryRegionPhysicalMarikoProgramImage(UINT64_C(0x80020000), 0x20000); static_assert(MemoryRegionDram.Contains(MemoryRegionPhysicalMarikoProgramImage));