Files
linux-kernel-module-cheat/baremetal/arch/aarch64/dump_regs.c
Ciro Santilli 六四事件 法轮功 12005528ef gdb: move all tests to userland
2019-05-26 00:00:01 +00:00

12 lines
281 B
C

/* Dump as many registers as we feel like to see initial CPU state. */
#include <stdio.h>
#include <inttypes.h>
int main(void) {
uint32_t sctlr_el1;
__asm__ ("mrs %0, sctlr_el1" : "=r" (sctlr_el1) : :);
printf("sctlr_el1 0x%" PRIx32 "\n", sctlr_el1);
return 0;
}