win-pvdrivers

changeset 782:6304eb6bb690

Fix x64 compile error
author James Harper <james.harper@bendigoit.com.au>
date Mon Feb 15 19:46:45 2010 +1100 (2010-02-15)
parents 2b2bf47e8672
children 644e5ddb1b47
files xennet/xennet_tx.c
line diff
     1.1 --- a/xennet/xennet_tx.c	Mon Feb 15 19:46:29 2010 +1100
     1.2 +++ b/xennet/xennet_tx.c	Mon Feb 15 19:46:45 2010 +1100
     1.3 @@ -345,7 +345,7 @@ XenNet_HWSendPacket(struct xennet_info *
     1.4        offset = MmGetMdlByteOffset(pi.curr_buffer) + pi.curr_mdl_offset;
     1.5        pfn = MmGetMdlPfnArray(pi.curr_buffer)[offset >> PAGE_SHIFT];
     1.6        txN->offset = (USHORT)offset & (PAGE_SIZE - 1);
     1.7 -      txN->gref = xi->vectors.GntTbl_GrantAccess(xi->vectors.context, 0, pfn, FALSE, gref);
     1.8 +      txN->gref = xi->vectors.GntTbl_GrantAccess(xi->vectors.context, 0, (ULONG)pfn, FALSE, gref);
     1.9        ASSERT(xi->tx_shadows[txN->id].gref == INVALID_GRANT_REF);
    1.10        xi->tx_shadows[txN->id].gref = txN->gref;
    1.11        //ASSERT(sg->Elements[sg_element].Length > sg_offset);