ia64/xen-unstable

view xen/include/asm-x86/types.h @ 6552:a9873d384da4

Merge.
author adsharma@los-vmm.sc.intel.com
date Thu Aug 25 12:24:48 2005 -0700 (2005-08-25)
parents 112d44270733 fa0754a9f64f
children dfaf788ab18c
line source
1 #ifndef __X86_TYPES_H__
2 #define __X86_TYPES_H__
4 #ifndef __ASSEMBLY__
6 #include <xen/config.h>
8 typedef __signed__ char __s8;
9 typedef unsigned char __u8;
11 typedef __signed__ short __s16;
12 typedef unsigned short __u16;
14 typedef __signed__ int __s32;
15 typedef unsigned int __u32;
17 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
18 #if defined(__i386__)
19 typedef __signed__ long long __s64;
20 typedef unsigned long long __u64;
21 #elif defined(__x86_64__)
22 typedef __signed__ long __s64;
23 typedef unsigned long __u64;
24 #endif
25 #endif
27 typedef signed char s8;
28 typedef unsigned char u8;
30 typedef signed short s16;
31 typedef unsigned short u16;
33 typedef signed int s32;
34 typedef unsigned int u32;
36 #if defined(__i386__)
37 typedef signed long long s64;
38 typedef unsigned long long u64;
39 #if defined(CONFIG_X86_PAE)
40 typedef u64 physaddr_t;
41 #define PRIphysaddr "016llx"
42 #else
43 typedef unsigned long physaddr_t;
44 #define PRIphysaddr "08lx"
45 #endif
46 #elif defined(__x86_64__)
47 typedef signed long s64;
48 typedef unsigned long u64;
49 typedef unsigned long physaddr_t;
50 #define PRIphysaddr "016lx"
51 #endif
53 typedef unsigned long size_t;
55 #endif /* __ASSEMBLY__ */
57 #if defined(__i386__)
58 #define BITS_PER_LONG 32
59 #define BYTES_PER_LONG 4
60 #define LONG_BYTEORDER 2
61 #elif defined(__x86_64__)
62 #define BITS_PER_LONG 64
63 #define BYTES_PER_LONG 8
64 #define LONG_BYTEORDER 3
65 #endif
67 #endif /* __X86_TYPES_H__ */