/[qemu]/qemu/exec.h
ViewVC logotype

Diff of /qemu/exec.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by bellard, Sun Aug 10 21:47:01 2003 UTC revision 1.15 by bellard, Sun Aug 10 22:14:22 2003 UTC
# Line 348  static inline int testandset (int *spinl Line 348  static inline int testandset (int *spinl
348  }  }
349  #endif  #endif
350    
351    #ifdef __mc68000
352    static inline int testandset (int *p)
353    {
354        char ret;
355        __asm__ __volatile__("tas %1; sne %0"
356                             : "=r" (ret)
357                             : "m" (p)
358                             : "cc","memory");
359        return ret == 0;
360    }
361    #endif
362    
363  typedef int spinlock_t;  typedef int spinlock_t;
364    
365  #define SPIN_LOCK_UNLOCKED 0  #define SPIN_LOCK_UNLOCKED 0

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26