zephyr/arch/x86/include
Benjamin Walsh f955476559 kernel/arch: optimize memory use of some thread fields
Some thread fields were 32-bit wide, when they are not even close to
using that full range of values. They are instead changed to 8-bit fields.

- prio can fit in one byte, limiting the priorities range to -128 to 127

- recursive scheduler locking can be limited to 255; a rollover results
  most probably from a logic error

- flags are split into execution flags and thread states; 8 bits is
  enough for each of them currently, with at worst two states and four
  flags to spare (on x86, on other archs, there are six flags to spare)

Doing this saves 8 bytes per stack. It also sets up an incoming
enhancement when checking if the current thread is preemptible on
interrupt exit.

Change-Id: Ieb5321a5b99f99173b0605dd4a193c3bc7ddabf4
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2017-01-09 20:52:24 +00:00
..
debug debug: move debug features from misc to subsys/debug 2016-12-19 19:58:40 +00:00
asm_inline.h kconfig: define architecture as a kconfig variable 2016-02-05 20:24:52 -05:00
asm_inline_gcc.h kernel: Clean up of x86 floating point code 2016-11-09 23:51:30 +00:00
cache_private.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00
exception.h x86: exceptions: simplify exception stubs 2016-09-28 20:28:07 +00:00
kernel_arch_data.h kernel/arch: optimize memory use of some thread fields 2017-01-09 20:52:24 +00:00
kernel_arch_func.h kernel: remove nano/micro wording and usage 2016-12-19 19:58:03 +00:00
kernel_event_logger_arch.h x86: declare internal API for interrupt controllers 2016-09-06 18:35:47 +00:00
offsets_short_arch.h kernel/arch: consolidate tTCS and TNANO definitions 2016-11-12 07:04:52 -05:00
swapstk.h c++: Add extern "C" { } block to header files 2016-02-05 20:25:22 -05:00