zephyr/arch/arc/core
Andrew Boie d26cf2dc33 kernel: add k_thread_create() API
Unline k_thread_spawn(), the struct k_thread can live anywhere and not
in the thread's stack region. This will be useful for memory protection
scenarios where private kernel structures for a thread are not
accessible by that thread, or we want to allow the thread to use all the
stack space we gave it.

This requires a change to the internal _new_thread() API as we need to
provide a separate pointer for the k_thread.

By default, we still create internal threads with the k_thread in stack
memory. Forthcoming patches will change this, but we first need to make
it easier to define k_thread memory of variable size depending on
whether we need to store coprocessor state or not.

Change-Id: I533bbcf317833ba67a771b356b6bbc6596bf60f5
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-05-11 20:24:22 -04:00
..
offsets license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
atomic.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
cache.c arch: convert to using newly introduced integer sized types 2017-04-21 12:08:12 +00:00
cpu_idle.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
fast_irq.S arc: enable gen_isr_tables mechanism 2017-02-15 04:54:47 +00:00
fatal.c kernel: add k_panic() and k_oops() APIs 2017-04-22 10:31:49 -04:00
fault.c Convert remaining code to using newly introduced integer sized types 2017-04-21 11:38:23 -05:00
fault_s.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
irq_manage.c Convert remaining code to using newly introduced integer sized types 2017-04-21 11:38:23 -05:00
irq_offload.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
isr_wrapper.S arc: enable gen_isr_tables mechanism 2017-02-15 04:54:47 +00:00
Makefile arc: add _tsc_read for 64-bit timestamp 2017-02-15 05:55:09 +00:00
prep_c.c Introduce new sized integer typedefs 2017-04-20 16:07:08 +00:00
regular_irq.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
reset.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
swap.S kernel: tickless: Rename _Swap to allow creation of macro 2017-04-27 13:46:26 +00:00
sys_fatal_error_handler.c kernel: add k_panic() and k_oops() APIs 2017-04-22 10:31:49 -04:00
thread.c kernel: add k_thread_create() API 2017-05-11 20:24:22 -04:00
thread_entry_wrapper.S build: add _ASMLANGUAGE to all asm files 2017-01-24 13:34:51 +00:00
timestamp.c kernel: tickless: Add tickless kernel support 2017-04-27 13:46:28 +00:00
vector_table.c arch: convert to using newly introduced integer sized types 2017-04-21 12:08:12 +00:00