x86: Add another '&' to the function arg of run_in_exception_handler.
authorTim Deegan <Tim.Deegan@citrix.com>
Mon, 7 Mar 2011 16:07:06 +0000 (16:07 +0000)
committerTim Deegan <Tim.Deegan@citrix.com>
Mon, 7 Mar 2011 16:07:06 +0000 (16:07 +0000)
This is needed to compile xen with clang.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/include/asm-x86/bug.h

index 05083e016827d9f89ddb1817b996865da2af61bc..b98ae7725f683713e280975c9e3b7b271103f92c 100644 (file)
@@ -22,7 +22,7 @@ struct bug_frame {
     asm volatile (                                 \
         "ud2 ; ret %0" BUG_STR(1)                  \
         : : "i" (BUGFRAME_run_fn),                 \
-            "i" (fn) )
+            "i" (&(fn)) )
 
 #define WARN()                                     \
     asm volatile (                                 \