win-pvdrivers

changeset 152:e5d11fe17633

fix warnings around intrinsics operating on ptrs to signed vals (trivial)
author Andy Grover <andy.grover@oracle.com>
date Wed Jan 23 12:39:10 2008 -0800 (2008-01-23)
parents eae0adfa5cee
children f799098694b5
files xenpci/evtchn.c
line diff
     1.1 --- a/xenpci/evtchn.c	Wed Jan 23 12:21:27 2008 -0800
     1.2 +++ b/xenpci/evtchn.c	Wed Jan 23 12:39:10 2008 -0800
     1.3 @@ -61,7 +61,7 @@ EvtChn_Interrupt(WDFINTERRUPT Interrupt,
     1.4  
     1.5    vcpu_info->evtchn_upcall_pending = 0;
     1.6  
     1.7 -  evt_words = xchg((volatile xen_ulong_t *)&vcpu_info->evtchn_pending_sel, 0);
     1.8 +  evt_words = xchg((volatile xen_long_t *)&vcpu_info->evtchn_pending_sel, 0);
     1.9    
    1.10    while (bit_scan_forward(&evt_word, evt_words))
    1.11    {
    1.12 @@ -86,7 +86,7 @@ EvtChn_Interrupt(WDFINTERRUPT Interrupt,
    1.13            ev_action->ServiceRoutine(NULL, ev_action->ServiceContext);
    1.14          }
    1.15        }
    1.16 -      synch_clear_bit(port, (volatile xen_ulong_t *)&shared_info_area->evtchn_pending[evt_word]);
    1.17 +      synch_clear_bit(port, (volatile xen_long_t *)&shared_info_area->evtchn_pending[evt_word]);
    1.18      }
    1.19    }
    1.20  
    1.21 @@ -185,7 +185,7 @@ EvtChn_Mask(PVOID Context, evtchn_port_t
    1.22    //KdPrint((__DRIVER_NAME " --> EvtChn_Mask\n"));
    1.23  
    1.24    synch_set_bit(Port,
    1.25 -    (volatile xen_ulong_t *)&xpdd->shared_info_area->evtchn_mask[0]);
    1.26 +    (volatile xen_long_t *)&xpdd->shared_info_area->evtchn_mask[0]);
    1.27  
    1.28    //KdPrint((__DRIVER_NAME " <-- EvtChn_Mask\n"));
    1.29  
    1.30 @@ -200,7 +200,7 @@ EvtChn_Unmask(PVOID Context, evtchn_port
    1.31    //KdPrint((__DRIVER_NAME " --> EvtChn_Unmask\n"));
    1.32  
    1.33    synch_clear_bit(Port,
    1.34 -    (volatile xen_ulong_t *)&xpdd->shared_info_area->evtchn_mask[0]);
    1.35 +    (volatile xen_long_t *)&xpdd->shared_info_area->evtchn_mask[0]);
    1.36    // should we kick off pending interrupts here too???
    1.37  
    1.38    //KdPrint((__DRIVER_NAME " <-- EvtChn_Unmask\n"));
    1.39 @@ -264,7 +264,7 @@ EvtChn_GetXenStoreRingAddr(WDFDEVICE Dev
    1.40  
    1.41    KdPrint((__DRIVER_NAME " --> EvtChn_GetRingAddr\n"));
    1.42  
    1.43 -  xen_store_mfn = hvm_get_parameter(Device, HVM_PARAM_STORE_PFN);
    1.44 +  xen_store_mfn = (xen_ulong_t)hvm_get_parameter(Device, HVM_PARAM_STORE_PFN);
    1.45  
    1.46    pa_xen_store_interface.QuadPart = xen_store_mfn << PAGE_SHIFT;
    1.47    xen_store_interface = MmMapIoSpace(pa_xen_store_interface, PAGE_SIZE, MmNonCached);