ia64/linux-2.6.18-xen.hg

view include/asm-i386/edac.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 ASM_EDAC_H
2 #define ASM_EDAC_H
4 /* ECC atomic, DMA, SMP and interrupt safe scrub function */
6 static __inline__ void atomic_scrub(void *va, u32 size)
7 {
8 unsigned long *virt_addr = va;
9 u32 i;
11 for (i = 0; i < size / 4; i++, virt_addr++)
12 /* Very carefully read and write to memory atomically
13 * so we are interrupt, DMA and SMP safe.
14 */
15 __asm__ __volatile__("lock; addl $0, %0"::"m"(*virt_addr));
16 }
18 #endif