lkml.org 
[lkml]   [2008]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateTue, 16 Dec 2008 11:37:28 +0000
From"Jan Beulich" <>
Subject[PATCH] x86-64: fix HYPERVISOR_update_descriptor()
Signed-off-by: Jan Beulich <jbeulich@novell.com>

---
arch/x86/include/asm/xen/hypercall.h | 2 ++
1 file changed, 2 insertions(+)
--- linux-2.6.28-rc8/arch/x86/include/asm/xen/hypercall.h 2008-12-11 14:45:37.000000000 +0100
+++ 2.6.28-rc8-x86_64-xen-update-descr/arch/x86/include/asm/xen/hypercall.h 2008-12-12 10:25:55.000000000 +0100
@@ -290,6 +290,8 @@ HYPERVISOR_get_debugreg(int reg)
static inline int
HYPERVISOR_update_descriptor(u64 ma, u64 desc)
{
+ if (sizeof(u64) == sizeof(long))
+ return _hypercall2(int, update_descriptor, ma, desc);
return _hypercall4(int, update_descriptor, ma, ma>>32, desc, desc>>32);
}





\
 
 \ /
  Last update: 2008-12-16 12:39    [from the cache]
©2003-2010