Re: __sync_lock_test_and_set on ARM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As an aside...

#define __KERNEL__
#include <asm/atomic.h>

You don't want to do this, the stuff in the header files bracketed
with __KERNEL__ is for internal use in the Linux kernel only; with
newer kernel versions, that stuff isn't copied into the user headers
anymore even.

You can of course copy that code into your own code, or perhaps
glibc has similar functionality somewhere?


Segher


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux