We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aa2f78 commit e42d770Copy full SHA for e42d770
lkmc/x86_64.h
@@ -4,19 +4,25 @@
4
/* This and other macros may make C function calls, and therefore can destroy
5
* non-callee saved registers. */
6
#define LKMC_ASSERT_EQ(general1, general2) \
7
+ push %rdi; \
8
mov general2, %rdi; \
9
push %rdi; \
10
+ mov 8(%rsp), %rdi; \
11
mov general1, %rdi; \
12
pop %rsi; \
13
+ add $8, %rsp; \
14
mov $__LINE__, %edx; \
15
call lkmc_assert_eq_64; \
16
;
17
18
#define LKMC_ASSERT_EQ_32(general1, general2) \
19
20
mov general2, %edi; \
21
22
23
mov general1, %edi; \
24
25
26
27
call lkmc_assert_eq_32; \
28
0 commit comments