# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Node ID 9446c5f455d8c3ad2b3b333af0f2ecfcf492f563 # Parent 5369cee86e468c49b7fd75ce0954da9e39b7f32d add trivial definitions, MULTI_UVMFLAGS_INDEX and MULTI_update_va_mapping() to compile netback and netfront PATCHNAME: netback_netfront_hypervisor_to_compile_linux Signed-off-by: Isaku Yamahata diff -r 5369cee86e46 -r 9446c5f455d8 linux-2.6-xen-sparse/include/asm-ia64/hypervisor.h --- a/linux-2.6-xen-sparse/include/asm-ia64/hypervisor.h Wed May 10 15:33:07 2006 +0900 +++ b/linux-2.6-xen-sparse/include/asm-ia64/hypervisor.h Wed May 10 15:33:09 2006 +0900 @@ -172,6 +172,19 @@ xen_destroy_contiguous_region(unsigned l if (running_on_xen) __xen_destroy_contiguous_region(vstart, order); } + +// for netfront.c, netback.c +#define MULTI_UVMFLAGS_INDEX 0 //XXX any value + +static inline void +MULTI_update_va_mapping( + multicall_entry_t *mcl, unsigned long va, + pte_t new_val, unsigned long flags) +{ + mcl->op = __HYPERVISOR_update_va_mapping; + mcl->result = 0; +} + #else #define xen_create_contiguous_region(vstart, order, address_bits) (0) #define xen_destroy_contiguous_region(vstart, order) do {} while (0)