typedef lck_rw_t lock_t;
-extern unsigned int LockTimeOut; /* Number of hardware ticks of a lock timeout */
+extern unsigned int LockTimeOutTSC; /* Lock timeout in TSC ticks */
+extern unsigned int LockTimeOut; /* Lock timeout in absolute time */
#if defined(__GNUC__)
{
uint32_t res = old;
- asm volatile(
+ __asm__ volatile(
"lock; cmpxchgl %1,%2; \n\t"
" setz %%al; \n\t"
" movzbl %%al,%0"
static inline int atomic_decl_and_test(volatile long * p, long delta)
{
uint8_t ret;
- asm volatile (
+ __asm__ volatile (
" lock \n\t"
" subl %1,%2 \n\t"
" sete %0"