mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
Revert "arm64: add arm64_current_el to obtain current EL"
This reverts commit e38f2b2a6d.
This commit is contained in:
committed by
Alan C. Assis
parent
0a2a6dfa57
commit
f6f072ee1c
@@ -394,26 +394,6 @@ static inline void arch_nop(void)
|
||||
__asm__ volatile ("nop");
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name:
|
||||
* arm64_current_el()
|
||||
*
|
||||
* Description:
|
||||
*
|
||||
* Get current execution level
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#define arm64_current_el() \
|
||||
({ \
|
||||
uint64_t __el; \
|
||||
int __ret; \
|
||||
__asm__ volatile ("mrs %0, CurrentEL" \
|
||||
: "=r" (__el)); \
|
||||
__ret = GET_EL(__el); \
|
||||
__ret; \
|
||||
})
|
||||
|
||||
/****************************************************************************
|
||||
* Name:
|
||||
* read_/write_/zero_ sysreg
|
||||
|
||||
Reference in New Issue
Block a user