aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/bug.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-21 14:40:37 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-21 14:40:37 +0000
commita7eb758852ae403380f8d31da0df540c77979320 (patch)
treeef56033ee951856cca6c4a98d6076ab0061ee893 /xen/include/asm-x86/bug.h
parent180211a7532d1a7b2f71dc8a6267bedcef86a3c8 (diff)
downloadxen-a7eb758852ae403380f8d31da0df540c77979320.tar.gz
xen-a7eb758852ae403380f8d31da0df540c77979320.tar.bz2
xen-a7eb758852ae403380f8d31da0df540c77979320.zip
x86: Better BUG() and ASSERT() logging.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/bug.h')
-rw-r--r--xen/include/asm-x86/bug.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/xen/include/asm-x86/bug.h b/xen/include/asm-x86/bug.h
index a85f4810b8..d09e3ea7a0 100644
--- a/xen/include/asm-x86/bug.h
+++ b/xen/include/asm-x86/bug.h
@@ -7,7 +7,15 @@
#include <asm/x86_32/bug.h>
#endif
-#define BUG() __BUG(__FILE__, __LINE__)
-#define dump_execution_state() __BUG(__FILE__, __LINE__ | 0x8000)
+struct bug_frame {
+ unsigned char ud2[2];
+ unsigned char ret;
+ unsigned short id; /* BUGFRAME_??? */
+} __attribute__((packed));
+
+#define BUGFRAME_dump 0
+#define BUGFRAME_bug 1
+#define BUGFRAME_assert 2
+#define BUGFRAME_rsvd 3
#endif /* __X86_BUG_H__ */