arm: userspace: Add ARM userspace infrastructure

This patch adds support for userspace on ARM architectures.  Arch
specific calls for transitioning threads to user mode, system calls,
and associated handlers.

Signed-off-by: Andy Gross <andy.gross@linaro.org>
This commit is contained in:
Andy Gross 2017-12-08 12:22:49 -06:00 committed by Andrew Boie
commit 1c047c9bef
14 changed files with 543 additions and 45 deletions

View file

@ -94,6 +94,12 @@ struct _thread_arch {
*/
struct _preempt_float preempt_float;
#endif
#ifdef CONFIG_USERSPACE
u32_t mode;
u32_t priv_stack_start;
u32_t priv_stack_size;
#endif
};
typedef struct _thread_arch _thread_arch_t;