Skip to content

Commit f6f072e

Browse files
xiaoxiang781216Alan C. Assis
authored andcommitted
Revert "arm64: add arm64_current_el to obtain current EL"
This reverts commit e38f2b2.
1 parent 0a2a6df commit f6f072e

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

arch/arm64/src/common/arm64_arch.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -394,26 +394,6 @@ static inline void arch_nop(void)
394394
__asm__ volatile ("nop");
395395
}
396396

397-
/****************************************************************************
398-
* Name:
399-
* arm64_current_el()
400-
*
401-
* Description:
402-
*
403-
* Get current execution level
404-
*
405-
****************************************************************************/
406-
407-
#define arm64_current_el() \
408-
({ \
409-
uint64_t __el; \
410-
int __ret; \
411-
__asm__ volatile ("mrs %0, CurrentEL" \
412-
: "=r" (__el)); \
413-
__ret = GET_EL(__el); \
414-
__ret; \
415-
})
416-
417397
/****************************************************************************
418398
* Name:
419399
* read_/write_/zero_ sysreg

0 commit comments

Comments
 (0)