CONFIG_PRIVILEGED_STACK_SIZE

Size of privileged stack

Type: int

Help

This option sets the privileged stack region size that will be used in addition to the user mode thread stack. During normal execution, this region will be inaccessible from user mode. During system calls, this region will be utilized by the system call. This value must be a multiple of the minimum stack alignment.

Defaults

Kconfig definitions

At <nRF>/Kconfig.nrf:21

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:9<BuildDir>/Kconfig/Kconfig.modules:1

Menu path: (Top) → Modules → Nordic nRF Connect

config PRIVILEGED_STACK_SIZE
    int
    default 2048 if ZTEST

At <Zephyr>/arch/Kconfig:246

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:29

Menu path: (Top) → General Architecture Options

config PRIVILEGED_STACK_SIZE
    int "Size of privileged stack"
    default 1024
    depends on ARCH_HAS_USERSPACE
    help
      This option sets the privileged stack region size that will be used
      in addition to the user mode thread stack.  During normal execution,
      this region will be inaccessible from user mode.  During system calls,
      this region will be utilized by the system call. This value must be
      a multiple of the minimum stack alignment.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)