diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-03-25 15:25:21 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-03-25 15:25:21 +0000 |
commit | 84f0ca7c703cadc10e50cb20c2dcd55f0c264404 (patch) | |
tree | 44ff29e864b51da617b0a2726ac9773b89afac43 /sys/arch/amd64 | |
parent | 285a9fe35e0a71356445a82b7992205d24fd9b54 (diff) |
Use explicit operand with SVM instructions as clang doesn't recognize the
implicit form.
ok mlarkin@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/vmm_support.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/vmm_support.S b/sys/arch/amd64/amd64/vmm_support.S index 6980dc0b827..8fde032b981 100644 --- a/sys/arch/amd64/amd64/vmm_support.S +++ b/sys/arch/amd64/amd64/vmm_support.S @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm_support.S,v 1.6 2017/02/20 07:36:20 mlarkin Exp $ */ +/* $OpenBSD: vmm_support.S,v 1.7 2017/03/25 15:25:20 kettenis Exp $ */ /* * Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org> * @@ -472,9 +472,9 @@ _C_LABEL(svm_enter_guest): /* %rax at 0x08(%rsi) is not needed in SVM */ movq 0x00(%rsi), %rsi - vmload - vmrun - vmsave + vmload %rax + vmrun %rax + vmsave %rax /* Preserve guest registers not saved in VMCB */ pushq %rsi |