direct-io.hg

changeset 10325:9d717a4f3531

[HVM][VMX] Fix the build with certain versions of gcc.
Restrict register choices to this which are byte addressable.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Jun 12 10:09:44 2006 +0100 (2006-06-12)
parents 92f071926e6e
children 34ff26fb2240
files xen/include/asm-x86/hvm/vmx/vmx.h
line diff
     1.1 --- a/xen/include/asm-x86/hvm/vmx/vmx.h	Mon Jun 12 10:05:55 2006 +0100
     1.2 +++ b/xen/include/asm-x86/hvm/vmx/vmx.h	Mon Jun 12 10:09:44 2006 +0100
     1.3 @@ -242,7 +242,7 @@ static always_inline int ___vmread(
     1.4                             MODRM_EAX_ECX
     1.5                             /* CF==1 or ZF==1 --> rc = -1 */
     1.6                             "setna %b0 ; neg %0"
     1.7 -                           : "=r" (rc), "=c" (ecx)
     1.8 +                           : "=q" (rc), "=c" (ecx)
     1.9                             : "a" (field)
    1.10                             : "memory");
    1.11  
    1.12 @@ -313,7 +313,7 @@ static inline int __vmwrite (unsigned lo
    1.13                             MODRM_EAX_ECX
    1.14                             /* CF==1 or ZF==1 --> rc = -1 */
    1.15                             "setna %b0 ; neg %0"
    1.16 -                           : "=r" (rc)
    1.17 +                           : "=q" (rc)
    1.18                             : "a" (field) , "c" (value)
    1.19                             : "memory");
    1.20  
    1.21 @@ -366,7 +366,7 @@ static inline int __vmxon (u64 addr)
    1.22                             MODRM_EAX_06
    1.23                             /* CF==1 or ZF==1 --> rc = -1 */
    1.24                             "setna %b0 ; neg %0"
    1.25 -                           : "=r" (rc)
    1.26 +                           : "=q" (rc)
    1.27                             : "a" (&addr) 
    1.28                             : "memory");
    1.29