ia64/xen-unstable

view xen/include/xen/types.h @ 14635:5c52e5ca8459

hvm: Clean up handling of exception intercepts.
Only intercept #DB/#BP if a debugger is attached.
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Wed Mar 28 18:47:17 2007 +0100 (2007-03-28)
parents fe76b80d081a
children 5a7eebbae5dc
line source
1 #ifndef __TYPES_H__
2 #define __TYPES_H__
4 #include <xen/config.h>
5 #include <asm/types.h>
7 #define BITS_TO_LONGS(bits) \
8 (((bits)+BITS_PER_LONG-1)/BITS_PER_LONG)
9 #define DECLARE_BITMAP(name,bits) \
10 unsigned long name[BITS_TO_LONGS(bits)]
12 #ifndef NULL
13 #define NULL ((void*)0)
14 #endif
16 #define INT_MAX ((int)(~0U>>1))
17 #define INT_MIN (-INT_MAX - 1)
18 #define UINT_MAX (~0U)
19 #define LONG_MAX ((long)(~0UL>>1))
20 #define LONG_MIN (-LONG_MAX - 1)
21 #define ULONG_MAX (~0UL)
23 typedef char bool_t;
25 /* bsd */
26 typedef unsigned char u_char;
27 typedef unsigned short u_short;
28 typedef unsigned int u_int;
29 typedef unsigned long u_long;
31 /* sysv */
32 typedef unsigned char unchar;
33 typedef unsigned short ushort;
34 typedef unsigned int uint;
35 typedef unsigned long ulong;
37 typedef __u8 uint8_t;
38 typedef __u8 u_int8_t;
39 typedef __s8 int8_t;
41 typedef __u16 uint16_t;
42 typedef __u16 u_int16_t;
43 typedef __s16 int16_t;
45 typedef __u32 uint32_t;
46 typedef __u32 u_int32_t;
47 typedef __s32 int32_t;
49 typedef __u64 uint64_t;
50 typedef __u64 u_int64_t;
51 typedef __s64 int64_t;
53 struct domain;
54 struct vcpu;
56 typedef __u16 __le16;
57 typedef __u16 __be16;
58 typedef __u32 __le32;
59 typedef __u32 __be32;
60 typedef __u64 __le64;
61 typedef __u64 __be64;
63 #endif /* __TYPES_H__ */