ERR:Throw

From 3dbrew
Jump to navigation Jump to search

Request

Index Word Description
0 Header code [0x00010800]
1-32 FatalErrInfo

Response

Index Word Description
0 Header code
1 Result code

FatalErrInfo

Offset Size Description
0x0 0x1 FatalErrType
0x1 0x1 Revision High (0x0 observed)
0x2 0x2 Revision Low (0x8436 observed)
0x4 0x4 Result Code
0x8 0x4 PC Address
0xC 0x4 Process ID
0x10 0x8 Title ID
0x18 0x8 Application Title ID
0x20 0x60 Data (type 3 = Exception, type 4 = Failure)

FatalErrType

Value Description
0 Generic
1 Corrupted
2 Card removed
3 Exception
4 Result Failure
5 Logged

Exception

Offset Size Description
0x0 0x18 ExceptionInfo
0x18 0x44 ExceptionContext
0x5C 0x4 Padding

ExceptionType

Value Description
0 Prefetch Abort
1 Data Abort
2 Undefined Exception
3 VFP Exception

ExceptionInfo

Offset Size Description
0x0 0x1 ExceptionType
0x1 0x3 Padding
0x4 0x4 IFSR (Prefetch Abort)/DFSR (Data Abort)
0x8 0x4 r15 (Prefetch Abort)/DFAR (Data Abort)
0xC 0x4 FPEXC (VFP Exception)
0x10 0x4 FPINST (VFP Exception)
0x14 0x4 FPINST2 (VFP Exception)

ExceptionContext

Offset Size Description
0x0 0x4 r0
0x4 0x4 r1
0x8 0x4 r2
0xC 0x4 r3
0x10 0x4 r4
0x14 0x4 r5
0x18 0x4 r6
0x1C 0x4 r7
0x20 0x4 r8
0x24 0x4 r9
0x28 0x4 r10
0x2C 0x4 r11
0x30 0x4 r12
0x34 0x4 r13
0x38 0x4 r14
0x3C 0x4 r15
0x40 0x4 CPSR

Failure

Offset Size Description
0x0 0x60 char*, Message

Output

Generic

Entry Format string Format args
PID 0x%08X_0x%08X FatalErrInfo Title ID
REV %d FatalErrInfo Revision Low | (FatalErrInfo Revision High << 16)
AID 0x%08X_0x%08X FatalErrInfo Application Title ID
ADR 0x%08X FatalErrInfo PC Address
RSL 0x%08X FatalErrInfo Result Code
Level %d FatalErrInfo Result Code & 0x80000000 ? (FatalErrInfo Result Code >> 27) - 0x20 : FatalErrInfo Result Code >> 27
Summary %d (FatalErrInfo Result Code & 0x7E00000) >> 21
Module %d (FatalErrInfo Result Code & 0x3FC00) >> 10
Desc %d FatalErrInfo Result Code & 0x3FF
Datetime %04d/%02d/%02d %02d:%02d:%02d Current Time

Result Failure

Entry Format string Format args
PID 0x%08X_0x%08X FatalErrInfo Title ID
REV %d FatalErrInfo Revision Low | (FatalErrInfo Revision High << 16)
AID 0x%08X_0x%08X FatalErrInfo Application Title ID
RSL 0x%08X FatalErrInfo Result Code
Level %d FatalErrInfo Result Code & 0x80000000 ? (FatalErrInfo Result Code >> 27) - 0x20 : FatalErrInfo Result Code >> 27
Summary %d (FatalErrInfo Result Code & 0x7E00000) >> 21
Module %d (FatalErrInfo Result Code & 0x3FC00) >> 10
Desc %d FatalErrInfo Result Code & 0x3FF
? %.*s FatalErrInfo Data Failure Message
Datetime %04d/%02d/%02d %02d:%02d:%02d Current Time