diff options
Diffstat (limited to 'src/arch/arm64/ramdetect.c')
-rw-r--r-- | src/arch/arm64/ramdetect.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/arm64/ramdetect.c b/src/arch/arm64/ramdetect.c index 2f6a1cd50c..c99c5b46c6 100644 --- a/src/arch/arm64/ramdetect.c +++ b/src/arch/arm64/ramdetect.c @@ -13,12 +13,13 @@ static enum { static int abort_checker(struct exc_state *state, uint64_t vector_id) { - if (raw_read_esr_el3() >> 26 != 0x25) + if (raw_read_esr() >> 26 != 0x25) return EXC_RET_IGNORED; /* Not a data abort. */ abort_state = ABORT_CHECKER_TRIGGERED; state->elx.elr += sizeof(uint32_t); /* Jump over faulting instruction. */ - raw_write_elr_el3(state->elx.elr); + raw_write_elr(state->elx.elr); + return EXC_RET_HANDLED; } |