1menuconfig RT_USING_LWP
2    bool "lwP(light weight Process)"
3    depends on RT_USING_SMART
4    default y
5    help
6        The lwP is a light weight process running in user mode.
7
8if RT_USING_LWP
9    menuconfig LWP_DEBUG
10        bool "Enable debugging features of LwP"
11        default n
12
13    if LWP_DEBUG
14        config LWP_DEBUG_INIT
15            select RT_USING_HOOKLIST
16            bool "Enable debug mode of init process"
17            depends on LWP_USING_RUNTIME
18            default y
19    endif
20
21    config LWP_USING_RUNTIME
22        bool "Using processes runtime environment (INIT process)"
23        default y
24        help
25            Runtime environment provide by init process including boot scripts,
26            poweroff, shutdown, reboot, etc.
27
28    config RT_LWP_MAX_NR
29        int "The max number of light-weight process"
30        default 30
31
32    config LWP_TASK_STACK_SIZE
33        int "The lwp thread kernel stack size"
34        default 16384
35
36    config RT_CH_MSG_MAX_NR
37        int "The maximum number of channel messages"
38        default 1024
39
40    config LWP_TID_MAX_NR
41        int "The maximum number of lwp thread id"
42        default 64
43
44    config LWP_ENABLE_ASID
45        bool "The switch of ASID feature"
46        depends on ARCH_ARM_CORTEX_A
47        default y
48
49    if ARCH_MM_MMU
50        config RT_LWP_SHM_MAX_NR
51            int "The maximum number of shared memory"
52            default 64
53
54        config LWP_USING_MPROTECT
55            bool
56            default n
57            help
58                ARCH has the support of mprotect
59    endif
60
61    if ARCH_MM_MPU
62        config RT_LWP_MPU_MAX_NR
63            int "The maximum number of mpu region"
64            default 2
65
66        config RT_LWP_USING_SHM
67            bool "Enable shared memory"
68            default y
69    endif
70
71    menuconfig RT_USING_LDSO
72        bool "LDSO: dynamic load shared objects"
73        depends on RT_USING_DFS_V2
74        select RT_USING_PAGECACHE
75        default y
76
77    if RT_USING_LDSO
78        config ELF_DEBUG_ENABLE
79            bool "Enable ldso debug"
80            default n
81
82        config ELF_LOAD_RANDOMIZE
83            bool "Enable random load address"
84            default n
85    endif
86
87rsource "terminal/Kconfig"
88rsource "vdso/Kconfig"
89endif
90