raspberry3_bare/asm_utils.S

7 lines
91 B
ArmAsm

.global get_el
get_el:
mrs x0, CurrentEL
lsr x0, x0, #2 // Shift Right by 2
ret