diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-02-20 11:57:06 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-02-20 11:57:06 +0000 |
commit | 7263379ba795cb86462825f3b13a2a92c22f05eb (patch) | |
tree | f997a609ba01a027de124ad499b562fd496ec7e9 /xen/include/asm-x86/bug.h | |
parent | cb015ee268b2dafd32007af9b5e243a6906e2e93 (diff) | |
download | xen-7263379ba795cb86462825f3b13a2a92c22f05eb.tar.gz xen-7263379ba795cb86462825f3b13a2a92c22f05eb.tar.bz2 xen-7263379ba795cb86462825f3b13a2a92c22f05eb.zip |
xen/x86: Better BUG back traces.
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.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xen/include/asm-x86/bug.h b/xen/include/asm-x86/bug.h new file mode 100644 index 0000000000..a85f4810b8 --- /dev/null +++ b/xen/include/asm-x86/bug.h @@ -0,0 +1,13 @@ +#ifndef __X86_BUG_H__ +#define __X86_BUG_H__ + +#ifdef __x86_64__ +#include <asm/x86_64/bug.h> +#else +#include <asm/x86_32/bug.h> +#endif + +#define BUG() __BUG(__FILE__, __LINE__) +#define dump_execution_state() __BUG(__FILE__, __LINE__ | 0x8000) + +#endif /* __X86_BUG_H__ */ |