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:
parent
9ccdcb9be6
commit
1c047c9bef
14 changed files with 543 additions and 45 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue