win-pvdrivers

changeset 581:da7ec4df7dd6

More updates to make it compile under IA64
author James Harper <james.harper@bendigoit.com.au>
date Tue Jun 02 21:42:44 2009 +1000 (2009-06-02)
parents 52da65ad3f0c
children 3fb323edeea9
files xenpci/hypercall.h xenpci/memory.c
line diff
     1.1 --- a/xenpci/hypercall.h	Tue Jun 02 21:13:28 2009 +1000
     1.2 +++ b/xenpci/hypercall.h	Tue Jun 02 21:42:44 2009 +1000
     1.3 @@ -23,10 +23,10 @@ Foundation, Inc., 51 Franklin Street, Fi
     1.4    #else
     1.5      #include "hypercall_x86.h"
     1.6    #endif
     1.7 -#else
     1.8 -  #if defined(_AMD64_)
     1.9 -    #include "hypercall_amd64.h"
    1.10 -  #endif
    1.11 +#elif defined(_AMD64_)
    1.12 +  #include "hypercall_amd64.h"
    1.13 +#elif defined(__ia64__)
    1.14 +  #include "hypercall_ia64.h"
    1.15  #endif
    1.16  
    1.17  static __inline ULONGLONG
     2.1 --- a/xenpci/memory.c	Tue Jun 02 21:13:28 2009 +1000
     2.2 +++ b/xenpci/memory.c	Tue Jun 02 21:42:44 2009 +1000
     2.3 @@ -2,6 +2,8 @@
     2.4  
     2.5  /* must be called at <= DISPATCH_LEVEL if hypercall_stubs == NULL */
     2.6  
     2.7 +#if !defined(__ia64__)
     2.8 +
     2.9  NTSTATUS
    2.10  hvm_get_stubs(PXENPCI_DEVICE_DATA xpdd)
    2.11  {
    2.12 @@ -58,3 +60,21 @@ hvm_free_stubs(PXENPCI_DEVICE_DATA xpdd)
    2.13  
    2.14    return STATUS_SUCCESS;
    2.15  }
    2.16 +
    2.17 +#else
    2.18 +
    2.19 +NTSTATUS
    2.20 +hvm_get_stubs(PXENPCI_DEVICE_DATA xpdd)
    2.21 +{
    2.22 +  UNREFERENCED_PARAMETER(xpdd);
    2.23 +  return STATUS_SUCCESS;
    2.24 +}
    2.25 +
    2.26 +NTSTATUS
    2.27 +hvm_free_stubs(PXENPCI_DEVICE_DATA xpdd)
    2.28 +{
    2.29 +  UNREFERENCED_PARAMETER(xpdd);
    2.30 +  return STATUS_SUCCESS;
    2.31 +}
    2.32 +
    2.33 +#endif