aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/bug.h
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@citrix.com>2011-03-07 15:58:19 +0000
committerTim Deegan <Tim.Deegan@citrix.com>2011-03-07 15:58:19 +0000
commit942031961a12a3b2d5269c122aa9637fb1e076b1 (patch)
treee1c38deeded180563762b09232008b31c30eb49c /xen/include/asm-x86/bug.h
parente4cdd74f02eaeea96348dc51534eff8e03d87697 (diff)
downloadxen-942031961a12a3b2d5269c122aa9637fb1e076b1.tar.gz
xen-942031961a12a3b2d5269c122aa9637fb1e076b1.tar.bz2
xen-942031961a12a3b2d5269c122aa9637fb1e076b1.zip
x86: revert 22983:0edb666c8300
run_in_exception_handler _does_ have other users. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/include/asm-x86/bug.h')
-rw-r--r--xen/include/asm-x86/bug.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/xen/include/asm-x86/bug.h b/xen/include/asm-x86/bug.h
index 19fc06a0c8..05083e0168 100644
--- a/xen/include/asm-x86/bug.h
+++ b/xen/include/asm-x86/bug.h
@@ -13,15 +13,16 @@ struct bug_frame {
unsigned short id; /* BUGFRAME_??? */
} __attribute__((packed));
-#define BUGFRAME_state 0
+#define BUGFRAME_run_fn 0
#define BUGFRAME_warn 1
#define BUGFRAME_bug 2
#define BUGFRAME_assert 3
-#define dump_execution_state() \
+#define run_in_exception_handler(fn) \
asm volatile ( \
- "ud2 ; ret %0" \
- : : "i" (BUGFRAME_state) )
+ "ud2 ; ret %0" BUG_STR(1) \
+ : : "i" (BUGFRAME_run_fn), \
+ "i" (fn) )
#define WARN() \
asm volatile ( \