ia64/xen-unstable

changeset 9992:00141f6d15e0

[IA64] linux: MULTI_update_va_mapping definition to copmile netback and netfront

add trivial definitions, MULTI_UVMFLAGS_INDEX and MULTI_update_va_mapping()
to compile netback and netfront

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Wed May 10 15:58:36 2006 -0600 (2006-05-10)
parents 2286ce3035fc
children ea181d857712
files linux-2.6-xen-sparse/include/asm-ia64/hypervisor.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/include/asm-ia64/hypervisor.h	Wed May 10 15:57:04 2006 -0600
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-ia64/hypervisor.h	Wed May 10 15:58:36 2006 -0600
     1.3 @@ -172,6 +172,19 @@ xen_destroy_contiguous_region(unsigned l
     1.4  	if (running_on_xen)
     1.5  		__xen_destroy_contiguous_region(vstart, order);
     1.6  }
     1.7 +
     1.8 +// for netfront.c, netback.c
     1.9 +#define MULTI_UVMFLAGS_INDEX 0 //XXX any value
    1.10 +
    1.11 +static inline void
    1.12 +MULTI_update_va_mapping(
    1.13 +	multicall_entry_t *mcl, unsigned long va,
    1.14 +	pte_t new_val, unsigned long flags)
    1.15 +{
    1.16 +	mcl->op = __HYPERVISOR_update_va_mapping;
    1.17 +	mcl->result = 0;
    1.18 +}
    1.19 +
    1.20  #else
    1.21  #define xen_create_contiguous_region(vstart, order, address_bits)	(0)
    1.22  #define xen_destroy_contiguous_region(vstart, order)	do {} while (0)