debuggers.hg

view xen/arch/ia64/patch/linux-2.6.11/types.h @ 4619:5b9e241131fb

bitkeeper revision 1.1329 (42661815u5WPq8d5f4_axi2xWheybA)

Merge firebug.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
into firebug.cl.cam.ac.uk:/local/scratch/kaf24/xeno-unstable-ia64.bk
author kaf24@firebug.cl.cam.ac.uk
date Wed Apr 20 08:51:33 2005 +0000 (2005-04-20)
parents 58efb3448933
children
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. */