ia64/xen-unstable

view xen/include/asm-x86/bug.h @ 14054:43e9952b07ea

x86: Better BUG() and ASSERT() logging.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Feb 21 14:40:37 2007 +0000 (2007-02-21)
parents 4990b2236f06
children 070cf119a7ec
line source
1 #ifndef __X86_BUG_H__
2 #define __X86_BUG_H__
4 #ifdef __x86_64__
5 #include <asm/x86_64/bug.h>
6 #else
7 #include <asm/x86_32/bug.h>
8 #endif
10 struct bug_frame {
11 unsigned char ud2[2];
12 unsigned char ret;
13 unsigned short id; /* BUGFRAME_??? */
14 } __attribute__((packed));
16 #define BUGFRAME_dump 0
17 #define BUGFRAME_bug 1
18 #define BUGFRAME_assert 2
19 #define BUGFRAME_rsvd 3
21 #endif /* __X86_BUG_H__ */