mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 20:14:27 +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'].
12 lines
199 B
ArmAsm
12 lines
199 B
ArmAsm
#include <lkmc.h>
|
|
|
|
LKMC_PROLOGUE
|
|
/* 1 + 2 == 3 */
|
|
mov $1, %rax
|
|
/* test-gdb-op1 */
|
|
mov $2, %rbx
|
|
add %rax, %rbx
|
|
/* test-gdb-result */
|
|
LKMC_ASSERT_EQ(%rbx, $3)
|
|
LKMC_EPILOGUE
|