git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86: fix HYPERVISOR_update_descriptor()
[pandora-kernel.git]
/
arch
/
x86
/
include
/
asm
/
xen
/
hypercall.h
diff --git
a/arch/x86/include/asm/xen/hypercall.h
b/arch/x86/include/asm/xen/hypercall.h
index
5e79ca6
..
9c371e4
100644
(file)
--- a/
arch/x86/include/asm/xen/hypercall.h
+++ b/
arch/x86/include/asm/xen/hypercall.h
@@
-296,6
+296,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);
}