kernel: add K_USER flag and _is_thread_user()

Indicates that the thread is configured to run in user mode.
Delete stub function in userspace.c

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-08-30 14:17:44 -07:00 committed by Andrew Boie
commit 5cfa5dc8db
3 changed files with 19 additions and 7 deletions

View file

@ -427,6 +427,11 @@ extern void k_call_stacks_analyze(void);
#define K_FP_REGS (1 << 1)
#endif
/* This thread has dropped from supervisor mode to user mode and consequently
* has additional restrictions
*/
#define K_USER (1 << 2)
#ifdef CONFIG_X86
/* x86 Bitmask definitions for threads user options */