exo: reserve a portion of iram for secure monitor debug (including code)

This commit is contained in:
Michael Scire 2020-11-14 11:11:41 -08:00
parent 43ef260c66
commit 72f83ea43e
5 changed files with 34 additions and 11 deletions

View file

@ -196,6 +196,11 @@ namespace ams::secmon {
return 0;
}
/* Validate that the page isn't a secure monitor debug page. */
if (MemoryRegionPhysicalIramSecureMonitorDebug.Contains(address, 1)) {
return 0;
}
/* Validate that the page is aligned. */
if (!util::IsAligned(address, 4_KB)) {
return 0;