This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __sync_lock_test_and_set on ARM


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]