feat(ras): add eabort get helper function

Add EABORT get field helper function to obtain SET, AET (UET) values
from esr_el3/disr_el1 based on PE error state recording in the exception
syndrome refer to RAS PE architecture in
https://developer.arm.com/documentation/ddi0487/latest/

Change-Id: I0011f041a3089c9bbf670275687ad7c3362a07f9
Signed-off-by: Vinoj Soundararajan <vinojs@google.com>
This commit is contained in:
Vinoj Soundararajan 2024-08-01 20:15:29 +00:00 committed by Manish Pandey
parent daeae49511
commit ec6f49c26b

View file

@ -178,6 +178,9 @@
#define EABORT_SET_WIDTH U(2) #define EABORT_SET_WIDTH U(2)
#define EABORT_SET_MASK U(0x3) #define EABORT_SET_MASK U(0x3)
#define EABORT_GET_FIELD(_esr_el3, _field) \
(((_esr_el3) >> EABORT_ ##_field ##_SHIFT) & EABORT_ ##_field ##_MASK)
/* DFSC code for SErrors */ /* DFSC code for SErrors */
#define DFSC_SERROR 0x11 #define DFSC_SERROR 0x11