mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
x86 asm: address modes, LKMC_ASSET_EQ_32 and intel manuals
This commit is contained in:
@@ -12,6 +12,15 @@
|
||||
call lkmc_assert_eq_64; \
|
||||
;
|
||||
|
||||
#define LKMC_ASSERT_EQ_32(general1, general2) \
|
||||
mov general2, %edi; \
|
||||
push %rdi; \
|
||||
mov general1, %edi; \
|
||||
pop %rsi; \
|
||||
mov $__LINE__, %edx; \
|
||||
call lkmc_assert_eq_32; \
|
||||
;
|
||||
|
||||
#define LKMC_ASSERT_FAIL \
|
||||
mov $__LINE__, %edi; \
|
||||
call lkmc_assert_fail; \
|
||||
|
||||
Reference in New Issue
Block a user