RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Functions
__atomic_test_and_set.c File Reference

Implementation of GCC Atomic Helper. More...

#include <stdbool.h>
#include <rtems.h>

Functions

bool __atomic_test_and_set (volatile void *mem, int access)
 

Detailed Description

Implementation of GCC Atomic Helper.

This implementation is used on BSPs with older cores which do not have atomic instructions. If the CPU core has atomic instructions, GCC will do the right thing.

https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html describes the interface for __atomic_test_and_set with the *mem being precisely one byte.