mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
12 lines
267 B
C
12 lines
267 B
C
/* https://github.com/cirosantilli/linux-kernel-module-cheat#arm-exception-level */
|
|
|
|
#include <stdio.h>
|
|
#include <inttypes.h>
|
|
|
|
int main(void) {
|
|
uint64_t el;
|
|
__asm__ ("mrs %0, CurrentEL;" : "=r" (el) : :);
|
|
printf("%" PRIu64 "\n", el >> 2);
|
|
return 0;
|
|
}
|