ia64/xen-unstable

changeset 13773:ef646312685f

[IA64] Add arch_free_page()

Without this, Linux can hit bad_page()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild2.aw
date Wed Jan 31 10:59:56 2007 -0700 (2007-01-31)
parents 6d38ae7927cf
children 18a8e34e1211
files linux-2.6-xen-sparse/include/asm-ia64/page.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/include/asm-ia64/page.h	Wed Jan 31 10:30:54 2007 -0700
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-ia64/page.h	Wed Jan 31 10:59:56 2007 -0700
     1.3 @@ -238,6 +238,15 @@ get_order (unsigned long size)
     1.4  #include <xen/features.h>	// to compile netback, netfront
     1.5  #include <asm/maddr.h>
     1.6  
     1.7 +#define arch_free_page(_page, _order)		\
     1.8 +({						\
     1.9 +	int foreign = PageForeign(_page);	\
    1.10 +	if (foreign)                            \
    1.11 +		PageForeignDestructor(_page);   \
    1.12 +	foreign;                                \
    1.13 +})
    1.14 +#define HAVE_ARCH_FREE_PAGE
    1.15 +
    1.16  #endif /* CONFIG_XEN */
    1.17  #endif /* __ASSEMBLY__ */
    1.18