[kvm-unit-tests PATCH 2/2] x86: pku: fix parameter passing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Parameter error_code is passed in the function definition while
the caller miss it. Fix it.

Signed-off-by: Chenyi Qiang <chenyi.qiang@xxxxxxxxx>
---
 x86/pku.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/x86/pku.c b/x86/pku.c
index 62fb261..1ce73fa 100644
--- a/x86/pku.c
+++ b/x86/pku.c
@@ -38,6 +38,7 @@ asm ("pf_tss: \n\t"
     // no task on x86_64, save/restore caller-save regs
     "push %rax; push %rcx; push %rdx; push %rsi; push %rdi\n"
     "push %r8; push %r9; push %r10; push %r11\n"
+    "mov 9*8(%rsp),%rdi\n"
 #endif
     "call do_pf_tss \n\t"
 #ifdef __x86_64__
-- 
2.17.1




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux