summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-03-28 20:49:32 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-03-28 20:49:32 +0100
commit7fefb61140ac9bf7674d9cc67a0999af644d5ac7 (patch)
treec9d317f0d869eabbef7126326976c84c81abf36a
parentdad67a8584b41700f87442c282f964381116b3ad (diff)
kdasm: Fix 64bit build
* x86_64/kdasm.S (count): Fix type to 32bit. (kd_slmscu, kd_slmscd): Fix getting count as 32bit.
-rw-r--r--x86_64/kdasm.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/x86_64/kdasm.S b/x86_64/kdasm.S
index 4ab4b9be..e1acf399 100644
--- a/x86_64/kdasm.S
+++ b/x86_64/kdasm.S
@@ -96,13 +96,13 @@ ENTRY(kd_slmwd)
#define from B_ARG0
#define to B_ARG1
-#define count %dx // B_ARG2
+#define count %edx // B_ARG2
ENTRY(kd_slmscu)
pushq %rbp
movq %rsp, %rbp
xchgq %rsi, %rdi
- movq count, %rcx
+ movl count, %ecx
cmpq %rdi, %rsi
cld
rep
@@ -119,7 +119,7 @@ ENTRY(kd_slmscd)
movq %rsp, %rbp
xchgq %rsi, %rdi
- movq count, %rcx
+ movl count, %ecx
cmpq %rdi, %rsi
std
rep