zephyr/arch/arm/core
Ioannis Glaropoulos e9d726c400 arch: arm: initialize mode variable upon user space enter
This commit initializes the thread.mode variable, right before
dropping thread privilege level to user mode. This is required,
as we need to know the privilege level of the thread, in case
we need to context-switch it -out and -in again (e.g. in case
an interrupt triggers a context-switch).

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-04-02 12:05:55 -04:00
..
cortex_m all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
offsets
__aeabi_atexit.c
CMakeLists.txt codecov: avoid inlining functions for correct execution counts 2019-03-26 13:28:30 -04:00
cpu_idle.S ARM: Fix push/pop alignment on ARM platforms 2019-02-05 13:13:39 -06:00
exc_exit.S arm: asm: Fix some asm issues when building with clang 2019-03-14 08:01:10 -05:00
fatal.c all: Update reserved function names 2019-03-11 13:48:42 -04:00
fault_s.S arch: arm: fix determining stacked frame for Non-Secure firmware 2019-02-19 12:30:12 -06:00
fault.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
irq_init.c all: Update reserved function names 2019-03-11 13:48:42 -04:00
irq_manage.c arch: Use macro BIT for shift operations 2019-03-26 14:31:29 -04:00
irq_offload.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
irq_relay.S arch: Remove board.h include from arch files 2018-11-01 13:15:18 +01:00
isr_wrapper.S arm: asm: Fix some asm issues when building with clang 2019-03-14 08:01:10 -05:00
Kconfig kconfig: arch: arm: Remove redundant ARM_SECURE_FIRMWARE dep. 2019-03-09 10:04:02 -05:00
swap_helper.S arch: arm: update arch.mode in user thread system calls 2019-04-02 11:07:46 -04:00
swap.c arch: arm: userspace: remove mode setting in swap() 2019-04-02 11:07:46 -04:00
sys_fatal_error_handler.c all: Update reserved function names 2019-03-11 13:48:42 -04:00
thread_abort.c all: Update reserved function names 2019-03-11 13:48:42 -04:00
thread.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
userspace.S arch: arm: initialize mode variable upon user space enter 2019-04-02 12:05:55 -04:00