Is following code SMP safe?#define InterlockedIncrement(x) ({ asm volatile ("lock; incl %0" : : "m" (*x) ); }) #define InterlockedDecrement(x) ({ asm volatile ("lock; decl %0" : : "m" (*x) ); })
Does -O2 option affect SMP safeness in this case? Regards,Mohan
-- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ