ia64/linux-2.6.18-xen.hg

view include/xen/hypercall.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 17a1a39df565
children
line source
1 #ifndef __XEN_HYPERCALL_H__
2 #define __XEN_HYPERCALL_H__
4 #include <asm/hypercall.h>
6 static inline int __must_check
7 HYPERVISOR_multicall_check(
8 multicall_entry_t *call_list, unsigned int nr_calls,
9 const unsigned long *rc_list)
10 {
11 int rc = HYPERVISOR_multicall(call_list, nr_calls);
13 if (unlikely(rc < 0))
14 return rc;
15 BUG_ON(rc);
16 BUG_ON((int)nr_calls < 0);
18 for ( ; nr_calls > 0; --nr_calls, ++call_list)
19 if (unlikely(call_list->result != (rc_list ? *rc_list++ : 0)))
20 return nr_calls;
22 return 0;
23 }
25 /* A construct to ignore the return value of hypercall wrappers in a few
26 * exceptional cases (simply casting the function result to void doesn't
27 * avoid the compiler warning): */
28 #define VOID(expr) ((void)((expr)?:0))
30 #endif /* __XEN_HYPERCALL_H__ */