From: Jeremy Fitzhardinge Date: Fri, 23 Sep 2011 18:44:17 +0000 (-0700) Subject: xen: add dom0_op hypercall X-Git-Tag: upstream/snapshot3+hdmi~8779^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eec07a9ecf428a680d72dc7f2428ea8bed80b84d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git xen: add dom0_op hypercall Signed-off-by: Jeremy Fitzhardinge --- diff --git a/arch/x86/include/asm/xen/hypercall.h b/arch/x86/include/asm/xen/hypercall.h index d240ea9..0c9894e 100644 --- a/arch/x86/include/asm/xen/hypercall.h +++ b/arch/x86/include/asm/xen/hypercall.h @@ -45,6 +45,7 @@ #include #include #include +#include /* * The hypercall asms have to meet several constraints: @@ -299,6 +300,13 @@ HYPERVISOR_set_timer_op(u64 timeout) } static inline int +HYPERVISOR_dom0_op(struct xen_platform_op *platform_op) +{ + platform_op->interface_version = XENPF_INTERFACE_VERSION; + return _hypercall1(int, dom0_op, platform_op); +} + +static inline int HYPERVISOR_set_debugreg(int reg, unsigned long value) { return _hypercall2(int, set_debugreg, reg, value);