arm64: Use the new CurrentEL macros

Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D43972
This commit is contained in:
Andrew Turner 2024-02-15 16:13:09 +00:00
parent 5e7941b6c9
commit 37563d39ef

View file

@ -267,8 +267,8 @@ END(mpentry)
*/
LENTRY(drop_to_el1)
mrs x23, CurrentEL
lsr x23, x23, #2
cmp x23, #0x2
and x23, x23, #(CURRENTEL_EL_MASK)
cmp x23, #(CURRENTEL_EL_EL2)
b.eq 1f
ret
1: