lkml.org 
[lkml]   [2010]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    Subjectin x86 architecture ,why the function atomic_sub_and_test() does not disable the interrupt?
    From
    static inline int atomic_sub_and_test(int i, atomic_t *v)
    {
    unsigned char c;

    asm volatile(LOCK_PREFIX "subl %2,%0; sete %1"
    : "+m" (v->counter), "=qm" (c)
    : "ir" (i) : "memory");
    return c;
    }

    TIA:)


    \
     
     \ /
      Last update: 2010-04-06 07:17    [W:0.018 / U:152.044 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site