ia64/xen-unstable

view xen/include/asm-x86/bug.h @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 69108560c7eb
children
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_warn 1
18 #define BUGFRAME_bug 2
19 #define BUGFRAME_assert 3
21 #define dump_execution_state() \
22 asm volatile ( \
23 "ud2 ; ret $0" \
24 : : "i" (BUGFRAME_dump) )
26 #define WARN() \
27 asm volatile ( \
28 "ud2 ; ret %0" BUG_STR(1) \
29 : : "i" (BUGFRAME_warn | (__LINE__<<2)), \
30 "i" (__FILE__) )
32 #define BUG() \
33 asm volatile ( \
34 "ud2 ; ret %0" BUG_STR(1) \
35 : : "i" (BUGFRAME_bug | (__LINE__<<2)), \
36 "i" (__FILE__) )
38 #define assert_failed(p) \
39 asm volatile ( \
40 "ud2 ; ret %0" BUG_STR(1) BUG_STR(2) \
41 : : "i" (BUGFRAME_assert | (__LINE__<<2)), \
42 "i" (__FILE__), "i" (#p) )
45 #endif /* __X86_BUG_H__ */