win-pvdrivers

changeset 579:c5136ccae1f3

Use IA64 compatible InterlockedXXX functions
author James Harper <james.harper@bendigoit.com.au>
date Tue Jun 02 21:12:09 2009 +1000 (2009-06-02)
parents e155447178e4
children 52da65ad3f0c
files xenpci/evtchn.c
line diff
     1.1 --- a/xenpci/evtchn.c	Thu May 21 09:38:44 2009 +1000
     1.2 +++ b/xenpci/evtchn.c	Tue Jun 02 21:12:09 2009 +1000
     1.3 @@ -29,8 +29,8 @@ Foundation, Inc., 51 Franklin Street, Fi
     1.4    #define bit_scan_forward(p1, p2) _BitScanForward(p1, p2)
     1.5  #else
     1.6    #define xchg(p1, p2) InterlockedExchange64(p1, p2)
     1.7 -  #define synch_clear_bit(p1, p2) _interlockedbittestandreset64(p2, p1)
     1.8 -  #define synch_set_bit(p1, p2) _interlockedbittestandset64(p2, p1)
     1.9 +  #define synch_clear_bit(p1, p2) InterlockedBitTestAndReset64(p2, p1)
    1.10 +  #define synch_set_bit(p1, p2) InterlockedBitTestAndSet64(p2, p1)
    1.11    #define bit_scan_forward(p1, p2) _BitScanForward64(p1, p2)
    1.12  #endif
    1.13