ia64/linux-2.6.18-xen.hg

view include/asm-arm/posix_types.h @ 452:c7ed6fe5dca0

kexec: dont initialise regions in reserve_memory()

There is no need to initialise efi_memmap_res and boot_param_res in
reserve_memory() for the initial xen domain as it is done in
machine_kexec_setup_resources() using values from the kexec hypercall.

Signed-off-by: Simon Horman <horms@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 28 10:55:18 2008 +0000 (2008-02-28)
parents 831230e53067
children
line source
1 /*
2 * linux/include/asm-arm/posix_types.h
3 *
4 * Copyright (C) 1996-1998 Russell King.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * Changelog:
11 * 27-06-1996 RMK Created
12 */
13 #ifndef __ARCH_ARM_POSIX_TYPES_H
14 #define __ARCH_ARM_POSIX_TYPES_H
16 /*
17 * This file is generally used by user-level software, so you need to
18 * be a little careful about namespace pollution etc. Also, we cannot
19 * assume GCC is being used.
20 */
22 typedef unsigned long __kernel_ino_t;
23 typedef unsigned short __kernel_mode_t;
24 typedef unsigned short __kernel_nlink_t;
25 typedef long __kernel_off_t;
26 typedef int __kernel_pid_t;
27 typedef unsigned short __kernel_ipc_pid_t;
28 typedef unsigned short __kernel_uid_t;
29 typedef unsigned short __kernel_gid_t;
30 typedef unsigned int __kernel_size_t;
31 typedef int __kernel_ssize_t;
32 typedef int __kernel_ptrdiff_t;
33 typedef long __kernel_time_t;
34 typedef long __kernel_suseconds_t;
35 typedef long __kernel_clock_t;
36 typedef int __kernel_timer_t;
37 typedef int __kernel_clockid_t;
38 typedef int __kernel_daddr_t;
39 typedef char * __kernel_caddr_t;
40 typedef unsigned short __kernel_uid16_t;
41 typedef unsigned short __kernel_gid16_t;
42 typedef unsigned int __kernel_uid32_t;
43 typedef unsigned int __kernel_gid32_t;
45 typedef unsigned short __kernel_old_uid_t;
46 typedef unsigned short __kernel_old_gid_t;
47 typedef unsigned short __kernel_old_dev_t;
49 #ifdef __GNUC__
50 typedef long long __kernel_loff_t;
51 #endif
53 typedef struct {
54 #if defined(__KERNEL__) || defined(__USE_ALL)
55 int val[2];
56 #else /* !defined(__KERNEL__) && !defined(__USE_ALL) */
57 int __val[2];
58 #endif /* !defined(__KERNEL__) && !defined(__USE_ALL) */
59 } __kernel_fsid_t;
61 #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
63 #undef __FD_SET
64 #define __FD_SET(fd, fdsetp) \
65 (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] |= (1<<((fd) & 31)))
67 #undef __FD_CLR
68 #define __FD_CLR(fd, fdsetp) \
69 (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] &= ~(1<<((fd) & 31)))
71 #undef __FD_ISSET
72 #define __FD_ISSET(fd, fdsetp) \
73 ((((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] & (1<<((fd) & 31))) != 0)
75 #undef __FD_ZERO
76 #define __FD_ZERO(fdsetp) \
77 (memset (fdsetp, 0, sizeof (*(fd_set *)(fdsetp))))
79 #endif
81 #endif