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:
parent
f564986d2f
commit
5cfa5dc8db
3 changed files with 19 additions and 7 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue