kernel: reorganize CONFIG_USERSPACE
This now depends on a capability Kconfig. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
26d1eb38e6
commit
9f70c7b281
2 changed files with 23 additions and 19 deletions
23
arch/Kconfig
23
arch/Kconfig
|
@ -44,6 +44,26 @@ config HW_STACK_PROTECTION
|
||||||
help
|
help
|
||||||
Select this option to enable hardware stack protection.
|
Select this option to enable hardware stack protection.
|
||||||
|
|
||||||
|
config USERSPACE
|
||||||
|
bool "User mode threads"
|
||||||
|
depends on ARCH_HAS_USERSPACE
|
||||||
|
depends on HW_STACK_PROTECTION
|
||||||
|
help
|
||||||
|
When enabled, threads may be created or dropped down to user mode,
|
||||||
|
which has significantly restricted permissions and must interact
|
||||||
|
with the kernel via system calls. See Zephyr documentation for more
|
||||||
|
details about this feature.
|
||||||
|
|
||||||
|
config MAX_THREAD_BYTES
|
||||||
|
int "Bytes to use when tracking object thread permissions"
|
||||||
|
default 2
|
||||||
|
depends on USERSPACE
|
||||||
|
help
|
||||||
|
Every kernel object will have an associated bitfield to store
|
||||||
|
thread permissions for that object. This controls the size of the
|
||||||
|
bitfield (in bytes) and imposes a limit on how many threads can
|
||||||
|
be created in the system.
|
||||||
|
|
||||||
config SIMPLE_FATAL_ERROR_HANDLER
|
config SIMPLE_FATAL_ERROR_HANDLER
|
||||||
prompt "Simple system fatal error handler"
|
prompt "Simple system fatal error handler"
|
||||||
bool
|
bool
|
||||||
|
@ -114,6 +134,9 @@ endmenu
|
||||||
config ARCH_HAS_STACK_PROTECTION
|
config ARCH_HAS_STACK_PROTECTION
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
config ARCH_HAS_USERSPACE
|
||||||
|
bool
|
||||||
|
|
||||||
#
|
#
|
||||||
# Hidden PM feature configs which are to be selected by
|
# Hidden PM feature configs which are to be selected by
|
||||||
# individual SoC.
|
# individual SoC.
|
||||||
|
|
|
@ -355,25 +355,6 @@ config NUM_PIPE_ASYNC_MSGS
|
||||||
Setting this option to 0 disables support for asynchronous
|
Setting this option to 0 disables support for asynchronous
|
||||||
pipe messages.
|
pipe messages.
|
||||||
|
|
||||||
config USERSPACE
|
|
||||||
bool "Enable user-level threads"
|
|
||||||
default n
|
|
||||||
help
|
|
||||||
When enabled, threads may be created or dropped down to user mode,
|
|
||||||
which has significantly restricted permissions and must interact
|
|
||||||
with the kernel via system calls. See Zephyr documentation for more
|
|
||||||
details about this feature.
|
|
||||||
|
|
||||||
config MAX_THREAD_BYTES
|
|
||||||
int "Bytes to use when tracking object thread permissions"
|
|
||||||
default 2
|
|
||||||
depends on USERSPACE
|
|
||||||
help
|
|
||||||
Every kernel object will have an associated bitfield to store
|
|
||||||
thread permissions for that object. This controls the size of the
|
|
||||||
bitfield (in bytes) and imposes a limit on how many threads can
|
|
||||||
be created in the system.
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "Memory Pool Options"
|
menu "Memory Pool Options"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue