aarch64: error: Beautify error printing

Make the printing of errors a bit more descriptive and print the FAR_ELn
register only when strictly required.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2020-11-09 16:00:37 +01:00 committed by Anas Nashif
commit a054e424e4
2 changed files with 103 additions and 82 deletions

View file

@ -160,6 +160,10 @@
#define GET_EL(_mode) (((_mode) >> MODE_EL_SHIFT) & MODE_EL_MASK)
#define ESR_EC(esr) (((esr) >> 26) & BIT_MASK(6))
#define ESR_IL(esr) (((esr) >> 25) & BIT_MASK(1))
#define ESR_ISS(esr) ((esr) & BIT_MASK(25))
/* mpidr */
#define MPIDR_AFFLVL_MASK 0xff