Files
linux-kernel-module-cheat/userland/arch/x86_64/gdb_tests/set_registers.S
Ciro Santilli 六四事件 法轮功 6994dc21af test-gdb: can now run in either userland or baremetal modes
Selection with --mode userland (default because has x86_64) or --mode baremetal.

This is the first userland tool where this choice is done on the command line,
which led to a refactor of supported_archs and is_baremetal and is_userland
into a single self.env['mode'].
2019-05-29 00:00:00 +00:00

11 lines
175 B
ArmAsm

/* Test that we can set registers from GDB. */
#include <lkmc.h>
LKMC_PROLOGUE
mov $1, %rax
/* test-gdb-rax */
mov $2, %rbx
/* test-gdb-rbx */
LKMC_EPILOGUE