ia64/xen-unstable

changeset 16204:eb786950169c

x86/64: Fix the build.
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Wed Oct 24 14:10:01 2007 +0100 (2007-10-24)
parents 4393255607be
children b0a7612ae372
files xen/arch/x86/platform_hypercall.c
line diff
     1.1 --- a/xen/arch/x86/platform_hypercall.c	Wed Oct 24 10:49:03 2007 +0100
     1.2 +++ b/xen/arch/x86/platform_hypercall.c	Wed Oct 24 14:10:01 2007 +0100
     1.3 @@ -298,15 +298,17 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xe
     1.4          struct vcpu *v;
     1.5          struct xenctl_cpumap ctlmap;
     1.6          cpumask_t cpumap;
     1.7 +        XEN_GUEST_HANDLE(uint8_t) cpumap_bitmap;
     1.8          XEN_GUEST_HANDLE(uint64_t) idletimes;
     1.9  
    1.10          ret = -ENOSYS;
    1.11          if ( cpufreq_controller != FREQCTL_dom0_kernel )
    1.12              break;
    1.13  
    1.14 -        memset(&ctlmap, 0, sizeof(ctlmap));
    1.15          ctlmap.nr_cpus  = op->u.getidletime.cpumap_nr_cpus;
    1.16 -        ctlmap.bitmap.p = op->u.getidletime.cpumap_bitmap.p;
    1.17 +        guest_from_compat_handle(cpumap_bitmap,
    1.18 +                                 op->u.getidletime.cpumap_bitmap);
    1.19 +        ctlmap.bitmap.p = cpumap_bitmap.p; /* handle -> handle_64 conversion */
    1.20          xenctl_cpumap_to_cpumask(&cpumap, &ctlmap);
    1.21          guest_from_compat_handle(idletimes, op->u.getidletime.idletime);
    1.22