From: Eduardo Habkost Date: Tue, 8 Jul 2008 22:07:04 +0000 (-0700) Subject: Xen64: HYPERVISOR_set_segment_base() implementation X-Git-Tag: v2.6.27-rc1~955^2~1^20~26 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=45eb0d889862c813dfc98c95549c25acbfc99ab8;p=karo-tx-linux.git Xen64: HYPERVISOR_set_segment_base() implementation Signed-off-by: Eduardo Habkost Signed-off-by: Jeremy Fitzhardinge Cc: Stephen Tweedie Cc: Mark McLoughlin Signed-off-by: Ingo Molnar --- diff --git a/include/asm-x86/xen/hypercall.h b/include/asm-x86/xen/hypercall.h index 25366641f3f8..d9e4cf7b23ac 100644 --- a/include/asm-x86/xen/hypercall.h +++ b/include/asm-x86/xen/hypercall.h @@ -388,6 +388,14 @@ HYPERVISOR_vcpu_op(int cmd, int vcpuid, void *extra_args) return _hypercall3(int, vcpu_op, cmd, vcpuid, extra_args); } +#ifdef CONFIG_X86_64 +static inline int +HYPERVISOR_set_segment_base(int reg, unsigned long value) +{ + return _hypercall2(int, set_segment_base, reg, value); +} +#endif + static inline int HYPERVISOR_suspend(unsigned long srec) {