direct-io.hg

changeset 13629:2f8a7e5fd8ba

32-on-64: Fix register-argument rearrangement to avoid clobbering the
fifth hypercall argument.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@localhost.localdomain
date Fri Jan 26 10:10:12 2007 +0000 (2007-01-26)
parents ba3ec84c9423
children e0291e3ed603
files xen/arch/x86/x86_64/compat/entry.S
line diff
     1.1 --- a/xen/arch/x86/x86_64/compat/entry.S	Fri Jan 26 02:44:35 2007 +0000
     1.2 +++ b/xen/arch/x86/x86_64/compat/entry.S	Fri Jan 26 10:10:12 2007 +0000
     1.3 @@ -33,11 +33,11 @@ ENTRY(compat_hypercall)
     1.4  #else
     1.5          /* Relocate argument registers and zero-extend to 64 bits. */
     1.6          movl  %eax,%eax              /* Hypercall #  */
     1.7 -        movl  UREGS_rbx(%rsp),%edi   /* Arg 1        */
     1.8          xchgl %ecx,%esi              /* Arg 2, Arg 4 */
     1.9          movl  %edx,%edx              /* Arg 3        */
    1.10          movl  %edi,%r8d              /* Arg 5        */
    1.11          movl  %ebp,%r9d              /* Arg 6        */
    1.12 +        movl  UREGS_rbx(%rsp),%edi   /* Arg 1        */
    1.13  #endif
    1.14          leaq  compat_hypercall_table(%rip),%r10
    1.15          PERFC_INCR(PERFC_hypercalls, %rax)