debuggers.hg

view xen/arch/ia64/patch/linux-2.6.11/types.h @ 4615:58efb3448933

bitkeeper revision 1.1327.1.1 (426536d2PUqtjTi2v06bzD10RFwarg)

Merge bk://xen.bkbits.net/xeno-unstable.bk
into bkbits.net:/repos/x/xen-ia64/xeno-unstable-ia64.bk
author xen-ia64.adm@bkbits.net
date Tue Apr 19 16:50:26 2005 +0000 (2005-04-19)
parents a8466d0e2992
children 5b9e241131fb
line source
1 --- ../../linux-2.6.11/include/asm-ia64/types.h 2005-03-04 10:26:30.000000000 -0700
2 +++ include/asm-ia64/types.h 2005-04-11 15:23:49.000000000 -0600
3 @@ -1,5 +1,12 @@
4 #ifndef _ASM_IA64_TYPES_H
5 #define _ASM_IA64_TYPES_H
6 +#ifdef XEN
7 +#ifndef __ASSEMBLY__
8 +typedef unsigned long ssize_t;
9 +typedef unsigned long size_t;
10 +typedef long long loff_t;
11 +#endif
12 +#endif
14 /*
15 * This file is never included by application software unless explicitly requested (e.g.,
16 @@ -61,6 +68,28 @@
17 typedef __s64 s64;
18 typedef __u64 u64;
20 +#ifdef XEN
21 +/*
22 + * Below are truly Linux-specific types that should never collide with
23 + * any application/library that wants linux/types.h.
24 + */
25 +
26 +#ifdef __CHECKER__
27 +#define __bitwise __attribute__((bitwise))
28 +#else
29 +#define __bitwise
30 +#endif
31 +
32 +typedef __u16 __bitwise __le16;
33 +typedef __u16 __bitwise __be16;
34 +typedef __u32 __bitwise __le32;
35 +typedef __u32 __bitwise __be32;
36 +#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
37 +typedef __u64 __bitwise __le64;
38 +typedef __u64 __bitwise __be64;
39 +#endif
40 +#endif
41 +
42 #define BITS_PER_LONG 64
44 /* DMA addresses are 64-bits wide, in general. */