aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/efi
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-04-29 11:27:54 +0200
committerJan Beulich <jbeulich@suse.com>2013-04-29 11:27:54 +0200
commita7ac9597a7fc6ca934957eb78b41e26638281953 (patch)
tree9962e3945e247f0cce7ec771ee163108c2a79d50 /xen/arch/x86/efi
parent4d9d046ae7d0b0374ebbef987ef66819aa33983b (diff)
downloadxen-a7ac9597a7fc6ca934957eb78b41e26638281953.tar.gz
xen-a7ac9597a7fc6ca934957eb78b41e26638281953.tar.bz2
xen-a7ac9597a7fc6ca934957eb78b41e26638281953.zip
x86/EFI: fix runtime call status for compat mode Dom0
The top two bits (indicating error/warning classification) need to remain the top two bits. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/efi')
-rw-r--r--xen/arch/x86/efi/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/efi/runtime.c b/xen/arch/x86/efi/runtime.c
index be3f5376b3..37bb535db7 100644
--- a/xen/arch/x86/efi/runtime.c
+++ b/xen/arch/x86/efi/runtime.c
@@ -531,7 +531,7 @@ int efi_runtime_call(struct xenpf_efi_runtime_call *op)
#ifndef COMPAT
op->status = status;
#else
- op->status = (status & 0x3fffffff) | (status >> 62);
+ op->status = (status & 0x3fffffff) | ((status >> 32) & 0xc0000000);
#endif
return rc;