zephyr/include/toolchain
Nicolas Pitre 0dc7b9ee46 k_current_get(): make it a "const" function
This function always returns the same value for a given thread.
Add the const attribute to it so the compiler won't call it over and
over needlessly each time _current is referenced, making for far more
efficient code.

The __attribute_const__ symbol is used to mimic the Linux equivalent.
We want to make it clear that this is distinct from the const keyword.

Fix the test_x86_cpu_scrubs_regs where the compiler wasn't told that a
bunch of registers are being clobbered as highlighted by this change.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2021-04-14 20:32:05 -04:00
..
common.h drivers: remove what appears to be code from comments 2021-04-01 05:34:17 -04:00
gcc.h k_current_get(): make it a "const" function 2021-04-14 20:32:05 -04:00
mwdt.h toolchain: define __no_optimization attribute across toolchains 2020-10-06 11:41:23 -04:00
xcc_missing_defs.h
xcc.h toolchain: xcc: nullify __deprecated macro 2021-03-29 07:53:23 -04:00
zephyr_stdint.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00