zephyr/kernel
Andrew Boie a7fedb7073 _setup_new_thread: fix crash on ARM
On arches which have custom logic to do the initial swap into
the main thread, _current may be NULL. This happens when
instantiating the idle and main threads.

If this is the case, skip checks for memory domain and object
permission inheritance, in this case there is never anything to
inherit.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-11-13 16:25:40 -08:00
..
include kernel: arch interface for memory domain 2017-11-07 12:22:43 -08:00
CMakeLists.txt Introduce cmake-based rewrite of KBuild 2017-11-08 20:00:22 -05:00
Kconfig kernel: Add option to ensure writable pages are not executable 2017-11-02 13:40:50 -07:00
Kconfig.event_logger
Kconfig.power_mgmt doc: spelling fixes in Kconfig files 2017-06-12 19:40:51 -04:00
alert.c kernel: Provide only one _SYSCALL_HANDLER() macro 2017-10-16 13:42:15 -04:00
atomic_c.c
compiler_stack_protect.c linker: move all linker headers to include/linker 2017-06-18 09:24:04 -05:00
device.c kernel: Compare pointers before strings when getting device binding 2017-10-19 14:43:48 -07:00
errno.c
idle.c linker: move all linker headers to include/linker 2017-06-18 09:24:04 -05:00
init.c kernel: init: mem_domain structure is initialized for dummy thread. 2017-11-07 12:22:43 -08:00
int_latency_bench.c
mailbox.c kernel: Use SYS_DLIST_FOR_EACH_CONTAINER whenever possible 2017-08-25 09:08:50 -04:00
mem_domain.c kernel: Arch specific memory domain APIs added 2017-11-07 12:22:43 -08:00
mem_slab.c kernel: introduce object validation mechanism 2017-09-07 16:33:33 -07:00
mempool.c mempool: add k_calloc() 2017-11-13 09:50:15 -08:00
msg_q.c kernel: Provide only one _SYSCALL_HANDLER() macro 2017-10-16 13:42:15 -04:00
mutex.c kernel: Remove dead or commented code from k_mutex_lock() 2017-10-24 11:11:00 -07:00
pipes.c kernel: Provide only one _SYSCALL_HANDLER() macro 2017-10-16 13:42:15 -04:00
poll.c poll: k_poll: Return -EINTR if not ready 2017-10-18 13:02:52 -04:00
pthread.c kernel: POSIX thread IPC support 2017-08-15 19:42:07 -04:00
queue.c queue: k_queue_cancel_wait: Fix not interrupting other threads 2017-10-18 13:02:52 -04:00
sched.c kernel: Provide only one _SYSCALL_HANDLER() macro 2017-10-16 13:42:15 -04:00
sem.c kernel: Fix comment section of semaphore object 2017-10-27 10:56:58 -07:00
stack.c kernel: Provide only one _SYSCALL_HANDLER() macro 2017-10-16 13:42:15 -04:00
sys_clock.c kernel: Provide only one _SYSCALL_HANDLER() macro 2017-10-16 13:42:15 -04:00
system_work_q.c kernel: introduce stack definition macros 2017-06-09 18:53:28 -04:00
thread.c _setup_new_thread: fix crash on ARM 2017-11-13 16:25:40 -08:00
thread_abort.c kernel: Provide only one _SYSCALL_HANDLER() macro 2017-10-16 13:42:15 -04:00
timer.c kernel: Provide only one _SYSCALL_HANDLER() macro 2017-10-16 13:42:15 -04:00
userspace.c userspace: assign thread IDs at build time 2017-11-03 11:29:23 -07:00
userspace_handler.c userspace: assign thread IDs at build time 2017-11-03 11:29:23 -07:00
version.c kernel: version: no need to store version in RAM 2017-09-07 16:34:50 -07:00
work_q.c kernel: fix k_thread_stack_t definition 2017-10-17 08:24:29 -07:00