Fix for problem in restore order for AsmVmLaunch & AsmVmResume

Restore of rdi and rsi were reversed with respect to the vmexit.
master
Eugene Myers 3 years ago
parent 8560868570
commit 4836ce7d43
  1. 4
      Stm/StmPkg/Library/StmLib/x64/AsmVmLaunch.s
  2. 4
      Stm/StmPkg/Library/StmLib/x64/AsmVmResume.s

@ -29,8 +29,8 @@ ASM_PFX(AsmVmLaunch):
movq 16(%rcx), %rdx
movq 24(%rcx), %rbx
movq 40(%rcx), %rbp
movq 48(%rcx), %rdi
movq 56(%rcx), %rsi
movq 48(%rcx), %rsi
movq 56(%rcx), %rdi
movq 64(%rcx), %r8
movq 72(%rcx), %r9
movq 80(%rcx), %r10

@ -29,8 +29,8 @@ ASM_PFX(AsmVmResume):
movq 16(%rcx), %rdx
movq 24(%rcx), %rbx
movq 40(%rcx), %rbp
movq 48(%rcx), %rdi
movq 56(%rcx), %rsi
movq 48(%rcx), %rsi
movq 56(%rcx), %rdi
movq 64(%rcx), %r8
movq 72(%rcx), %r9
movq 80(%rcx), %r10

Loading…
Cancel
Save