ia64/xen-unstable
changeset 16956:938446025b5b
Fix x86/64 Xen build.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Thu Jan 31 11:05:14 2008 +0000 (2008-01-31) |
parents | c4a06902febf |
children | af5d189df051 |
files | xen/arch/x86/hvm/vmx/realmode.c |
line diff
1.1 --- a/xen/arch/x86/hvm/vmx/realmode.c Thu Jan 31 09:43:05 2008 +0000 1.2 +++ b/xen/arch/x86/hvm/vmx/realmode.c Thu Jan 31 11:05:14 2008 +0000 1.3 @@ -416,7 +416,9 @@ realmode_read_msr( 1.4 uint64_t *val, 1.5 struct x86_emulate_ctxt *ctxt) 1.6 { 1.7 - struct cpu_user_regs _regs = { .ecx = (uint32_t)reg }; 1.8 + struct cpu_user_regs _regs; 1.9 + 1.10 + _regs.ecx = (uint32_t)reg; 1.11 1.12 if ( !vmx_msr_read_intercept(&_regs) ) 1.13 { 1.14 @@ -438,10 +440,11 @@ realmode_write_msr( 1.15 uint64_t val, 1.16 struct x86_emulate_ctxt *ctxt) 1.17 { 1.18 - struct cpu_user_regs _regs = { 1.19 - .edx = (uint32_t)(val >> 32), 1.20 - .eax = (uint32_t)val, 1.21 - .ecx = (uint32_t)reg }; 1.22 + struct cpu_user_regs _regs; 1.23 + 1.24 + _regs.edx = (uint32_t)(val >> 32); 1.25 + _regs.eax = (uint32_t)val; 1.26 + _regs.ecx = (uint32_t)reg; 1.27 1.28 if ( !vmx_msr_write_intercept(&_regs) ) 1.29 {