zephyr/include/sys
Daniel Leung 9f0188daff kernel: prioritize C atomic functions if selected
Usually, GCC builtin or arch-specific atomic functions are being
used. The corresponding kconfigs are "selected" by architecture
or SoC kconfigs. CONFIG_ATOMIC_OPERATIONS_C is usually used to
override the GCC built-in or arch-specific atomic functions when
these two are not supported. So change the priority of #include
so that C version is included first if selected, and skips
the inline versions of the other two variants. Or else there
will be two compiled versions of atomic functions: inline version
and the compiled C version. Note that the arch-specific version
and builtin are swapped, so the builtin one is now the default.

Fixes #33857

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2021-04-02 07:23:33 -04:00
..
__assert.h
arch_interface.h kernel: remove arch_mem_domain_destroy 2021-03-18 16:30:47 +01:00
atomic_builtin.h kernel: remove C syscall include in builtin atomic header 2021-04-02 07:23:33 -04:00
atomic_c.h arch/xtensa: Inline atomics 2021-03-08 11:14:27 -05:00
atomic.h kernel: prioritize C atomic functions if selected 2021-04-02 07:23:33 -04:00
base64.h
byteorder.h sys: byteorder: Fix incorrect shift in sys_get_be48/le48 2020-09-21 11:17:59 +02:00
cbprintf_internal.h lib: os: cbprintf: Fix legth field in static package 2021-03-29 14:08:41 +02:00
cbprintf.h lib: os: cbprintf: Add alignment offset to packaging 2021-03-29 14:08:41 +02:00
check.h
crc.h lib: os: Introduce support for CRC32C algorithm 2021-03-02 14:08:30 +01:00
device_mmio.h mmu: rename z_mem_map to z_phys_map 2020-12-16 08:55:55 -05:00
dlist.h sys: tell compiler about impossible aliasing in dlist APIs 2021-03-02 19:39:24 -05:00
errno_private.h kernel: support using thread local storage for errno 2020-10-24 10:52:00 -07:00
fdtable.h
kobject.h kernel: userspace: aligned memory allocation for dynamic objects 2021-01-13 09:43:55 -08:00
libc-hooks.h arm: cortex_m: add support for thread local storage 2020-10-24 10:52:00 -07:00
list_gen.h
math_extras_impl.h
math_extras.h
mem_manage.h linker-tool-gcc: revise for MMU support 2021-03-16 15:03:44 -04:00
mutex.h docs: Add missing retval for sys_mutex_unlock() 2021-03-10 05:42:06 -05:00
notify.h code-guideline: Fixing code violation 10.4 Rule 2020-10-01 17:13:29 -04:00
onoff.h code-guideline: Fixing code violation 10.4 Rule 2020-10-01 17:13:29 -04:00
p4wq.h lib/os: P4 Work Queue: Pooled Parallel Preemptible Priority-based 2021-01-15 11:35:50 -05:00
printk.h lib/os: replace z_vprintk with cbprintf 2020-11-13 06:38:01 -05:00
rb.h
ring_buffer.h lib: os: ring_buffer: Cleaning checkpatch warnings 2020-11-11 13:17:49 +01:00
sem.h
sflist.h
slist.h
speculation.h
sys_heap.h kernel/arch: cleanup function definitions 2021-04-01 05:34:17 -04:00
sys_io.h sys_io: Expand the API to 64bits read/write functions 2020-12-08 09:29:20 -05:00
thread_stack.h kernel/include: Put kernel stack memory in the right memory 2021-02-11 14:47:40 -05:00
time_units.h clock: rename z_clock_hw_cycles_per_sec_runtime_get 2021-03-19 11:22:17 -04:00
timeutil.h doc: add a section for timeutil APIs 2021-01-20 16:38:56 -05:00
util_internal.h sys: util: Update implementation of loop macros 2021-02-28 16:46:44 -05:00
util_loops.h sys: util: Update implementation of loop macros 2021-02-28 16:46:44 -05:00
util_macro.h sys: util: Update implementation of loop macros 2021-02-28 16:46:44 -05:00
util.h sys: util: add BIT64_MASK 2020-11-13 06:38:01 -05:00