1 /******************************************************************************
2  * compat.h
3  */
4 
5 #ifndef X86_COMPAT_H
6 #define X86_COMPAT_H
7 
8 #ifdef CONFIG_COMPAT
9 
10 #define COMPAT_BITS_PER_LONG 32
11 
12 typedef uint32_t compat_ptr_t;
13 typedef unsigned long full_ptr_t;
14 
15 #endif
16 
17 struct domain;
18 #ifdef CONFIG_PV32
19 int switch_compat(struct domain *);
20 #else
21 #include <xen/errno.h>
switch_compat(struct domain * d)22 static inline int switch_compat(struct domain *d) { return -EOPNOTSUPP; }
23 #endif
24 
25 #endif /* X86_COMPAT_H */
26