Subversion Repositories HelenOS-historic

Rev

Rev 1104 | Rev 1692 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1104 Rev 1121
Line 99... Line 99...
99
 
99
 
100
    preemption_disable();
100
    preemption_disable();
101
    __asm__ volatile (
101
    __asm__ volatile (
102
        "0:;"
102
        "0:;"
103
#ifdef CONFIG_HT
103
#ifdef CONFIG_HT
104
        "pause;" /* Pentium 4's HT love this instruction */
104
        "pause;"
105
#endif
105
#endif
106
        "mov %0, %1;"
106
        "mov %0, %1;"
107
        "testq %1, %1;"
107
        "testq %1, %1;"
108
        "jnz 0b;"       /* Lightweight looping on locked spinlock */
108
        "jnz 0b;"       /* Lightweight looping on locked spinlock */
109
       
109