zephyr/tests/arch/x86
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
..
cpu_scrubs_regs k_current_get(): make it a "const" function 2021-04-14 20:32:05 -04:00
info clock: rename z_timer_cycle_get_32 -> sys_clock_cycle_get_32 2021-03-19 11:22:17 -04:00
nmi
pagetables x86: map all RAM if ACPI 2021-01-23 19:47:23 -05:00
static_idt