mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-21 11:02:45 +02:00
kern: return ExceptionType_UnalignedData on data abort caused by alignment fault
This commit is contained in:
parent
2af5fbb951
commit
7f661bd2c8
@ -223,6 +223,13 @@ namespace ams::kern::arch::arm64 {
|
|||||||
type = ams::svc::ExceptionType_InstructionAbort;
|
type = ams::svc::ExceptionType_InstructionAbort;
|
||||||
break;
|
break;
|
||||||
case EsrEc_DataAbortEl0:
|
case EsrEc_DataAbortEl0:
|
||||||
|
/* If esr.IFSC is "Alignment Fault", return UnalignedData instead of DataAbort. */
|
||||||
|
if ((esr & 0x3F) == 0b100001) {
|
||||||
|
type = ams::svc::ExceptionType_UnalignedData;
|
||||||
|
} else {
|
||||||
|
type = ams::svc::ExceptionType_DataAbort;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
type = ams::svc::ExceptionType_DataAbort;
|
type = ams::svc::ExceptionType_DataAbort;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user