ia64/linux-2.6.18-xen.hg

view include/asm-m68k/div64.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 #ifndef _M68K_DIV64_H
2 #define _M68K_DIV64_H
4 /* n = n / base; return rem; */
6 #define do_div(n, base) ({ \
7 union { \
8 unsigned long n32[2]; \
9 unsigned long long n64; \
10 } __n; \
11 unsigned long __rem, __upper; \
12 \
13 __n.n64 = (n); \
14 if ((__upper = __n.n32[0])) { \
15 asm ("divul.l %2,%1:%0" \
16 : "=d" (__n.n32[0]), "=d" (__upper) \
17 : "d" (base), "0" (__n.n32[0])); \
18 } \
19 asm ("divu.l %2,%1:%0" \
20 : "=d" (__n.n32[1]), "=d" (__rem) \
21 : "d" (base), "1" (__upper), "0" (__n.n32[1])); \
22 (n) = __n.n64; \
23 __rem; \
24 })
26 #endif /* _M68K_DIV64_H */