kernel: expose API when userspace not enabled

We want applications to be able to enable and disable userspace without
changing any code. k_thread_user_mode_enter() now just jumps into the
entry point if CONFIG_USERSPACE is disabled.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-09-29 04:42:30 -07:00 committed by Anas Nashif
commit 93eb603f48
2 changed files with 5 additions and 5 deletions

View file

@ -556,7 +556,6 @@ extern k_tid_t k_thread_create(struct k_thread *new_thread,
void *p1, void *p2, void *p3,
int prio, u32_t options, s32_t delay);
#ifdef CONFIG_USERSPACE
/**
* @brief Drop a thread's privileges permanently to user mode
*
@ -568,7 +567,6 @@ extern k_tid_t k_thread_create(struct k_thread *new_thread,
extern FUNC_NORETURN void k_thread_user_mode_enter(k_thread_entry_t entry,
void *p1, void *p2,
void *p3);
#endif
/**
* @brief Put the current thread to sleep.