Mailing List Archive

[xen-unstable] x86: Add another '&' to the function arg of run_in_exception_handler.
# HG changeset patch
# User Tim Deegan <Tim.Deegan@citrix.com>
# Date 1299514026 0
# Node ID ca556b7bad5c09521b59ba6bbd71e22958940975
# Parent e8f392bbc9dc0156a1875c86c79b68ded3971595
x86: Add another '&' to the function arg of run_in_exception_handler.
This is needed to compile xen with clang.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
---


diff -r e8f392bbc9dc -r ca556b7bad5c xen/include/asm-x86/bug.h
--- a/xen/include/asm-x86/bug.h Mon Mar 07 15:58:19 2011 +0000
+++ b/xen/include/asm-x86/bug.h Mon Mar 07 16:07:06 2011 +0000
@@ -22,7 +22,7 @@
asm volatile ( \
"ud2 ; ret %0" BUG_STR(1) \
: : "i" (BUGFRAME_run_fn), \
- "i" (fn) )
+ "i" (&(fn)) )

#define WARN() \
asm volatile ( \

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog