ia64/xen-unstable

changeset 6292:fd59d2620ac1

This time, it's fixed.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
author sos22@douglas.cl.cam.ac.uk
date Fri Aug 19 15:37:37 2005 +0000 (2005-08-19)
parents 3c1cd2486b7f
children 47d49e8b8042
files linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/hypercall.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/hypercall.h	Fri Aug 19 14:10:24 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/hypercall.h	Fri Aug 19 15:37:37 2005 +0000
     1.3 @@ -502,4 +502,21 @@ HYPERVISOR_set_segment_base(
     1.4      return ret;
     1.5  }
     1.6  
     1.7 +static inline int
     1.8 +HYPERVISOR_vcpu_pickle(
     1.9 +    int vcpu, vcpu_guest_context_t *ctxt)
    1.10 +{
    1.11 +    int ret;
    1.12 +    unsigned long ign1, ign2;
    1.13 +    __asm__ __volatile__ (
    1.14 +        TRAP_INSTR
    1.15 +        : "=a" (ret), "=b" (ign1), "=c" (ign2)
    1.16 +	: "0" (__HYPERVISOR_sched_op),
    1.17 +	  "1" (SCHEDOP_vcpu_pickle | (vcpu << SCHEDOP_vcpushift)),
    1.18 +	  "2" (ctxt)
    1.19 +        : "memory" );
    1.20 +
    1.21 +    return ret;
    1.22 +}
    1.23 +
    1.24  #endif /* __HYPERCALL_H__ */