Add stack overflow detection to fatal error code

This commit is contained in:
misson20000 2020-07-15 20:12:49 -07:00 committed by SciresM
parent f71ad5ac2c
commit 9382ff0939
3 changed files with 27 additions and 9 deletions

View file

@ -73,6 +73,7 @@ namespace ams {
static constexpr uintptr_t StdAbortMagicAddress = 0x8;
static constexpr u64 StdAbortMagicValue = 0xA55AF00DDEADCAFEul;
static constexpr u32 StdAbortErrorDesc = 0xFFE;
static constexpr u32 StackOverflowErrorDesc = 0xFFD;
static constexpr u32 DataAbortErrorDesc = 0x101;
static constexpr u32 Magic = util::FourCC<'A', 'F', 'E', '2'>::Code;