Files
linux-kernel-module-cheat/baremetal/arch/aarch64/el.c
Ciro Santilli 六四事件 法轮功 07000300ab userland: support arch specific examples
2018-11-20 00:00:00 +00:00

10 lines
191 B
C

#include <stdio.h>
#include <inttypes.h>
int main(void) {
register uint64_t x0 __asm__ ("x0");
__asm__ ("mrs x0, CurrentEL;" : : : "%x0");
printf("%" PRIu64 "\n", x0);
return 0;
}