mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
17 lines
283 B
ArmAsm
17 lines
283 B
ArmAsm
# Add with carry.
|
|
#
|
|
# edx:eax += ebx:ecx
|
|
|
|
#include <lkmc.h>
|
|
|
|
LKMC_PROLOGUE
|
|
movl $0x80000000, %eax
|
|
movl $0x80000000, %ecx
|
|
movl $0, %ebx
|
|
movl $0, %edx
|
|
addl %ecx, %eax
|
|
adcl %ebx, %edx
|
|
LKMC_ASSERT_EQ_32(%eax, $0)
|
|
LKMC_ASSERT_EQ_32(%edx, $1)
|
|
LKMC_EPILOGUE
|