mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
13 lines
232 B
ArmAsm
13 lines
232 B
ArmAsm
/* Increment: i++.
|
|
*
|
|
* https://github.com/cirosantilli/linux-kernel-module-cheat#x86-binary-arithmetic-instructions
|
|
*/
|
|
|
|
#include <lkmc.h>
|
|
|
|
LKMC_PROLOGUE
|
|
mov $2, %eax
|
|
inc %eax
|
|
LKMC_ASSERT_EQ_32(%eax, $3)
|
|
LKMC_EPILOGUE
|