factor out baremetal aarch64 dump_regs.c for kernel module usage

Create dump-regs section.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-12-12 00:00:04 +00:00
parent 6f9fbfdcd8
commit cf4ed0f11d
5 changed files with 126 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
/* Dump registers that cannot be read from EL0. */
/* https://cirosantilli.com/linux-kernel-module-cheat#dump-regs */
#include <stdio.h>
#include <inttypes.h>