mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-30 05:24:25 +01:00
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'].
11 lines
175 B
ArmAsm
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
|