mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
13 lines
222 B
ArmAsm
13 lines
222 B
ArmAsm
/* Increment: i++.
|
|
*
|
|
* https://cirosantilli.com/linux-kernel-module-cheat#x86-binary-arithmetic-instructions
|
|
*/
|
|
|
|
#include <lkmc.h>
|
|
|
|
LKMC_PROLOGUE
|
|
mov $2, %rax
|
|
inc %rax
|
|
LKMC_ASSERT_EQ(%rax, $3)
|
|
LKMC_EPILOGUE
|