2022-12-03 12:07:44 +08:00
|
|
|
menuconfig RT_USING_LWP
|
|
|
|
bool "light-weight process"
|
2022-12-16 18:38:28 +08:00
|
|
|
depends on RT_USING_SMART
|
|
|
|
default y
|
2018-12-10 16:31:33 +08:00
|
|
|
help
|
|
|
|
The lwP is a light weight process running in user mode.
|
2022-12-03 12:07:44 +08:00
|
|
|
|
|
|
|
if RT_USING_LWP
|
2024-04-09 21:36:16 +08:00
|
|
|
menuconfig LWP_DEBUG
|
2023-10-14 13:07:45 +08:00
|
|
|
bool "Enable debugging features of LwP"
|
2024-03-28 23:42:56 +08:00
|
|
|
default y
|
2023-10-14 13:07:45 +08:00
|
|
|
|
2024-04-09 21:36:16 +08:00
|
|
|
if LWP_DEBUG
|
|
|
|
config LWP_DEBUG_INIT
|
2024-06-04 00:06:41 +08:00
|
|
|
select RT_USING_HOOKLIST
|
|
|
|
bool "Enable debug mode of init process"
|
|
|
|
default n
|
2024-04-09 21:36:16 +08:00
|
|
|
endif
|
|
|
|
|
2022-12-03 12:07:44 +08:00
|
|
|
config RT_LWP_MAX_NR
|
|
|
|
int "The max number of light-weight process"
|
|
|
|
default 30
|
|
|
|
|
|
|
|
config LWP_TASK_STACK_SIZE
|
|
|
|
int "The lwp thread kernel stack size"
|
|
|
|
default 16384
|
|
|
|
|
|
|
|
config RT_CH_MSG_MAX_NR
|
|
|
|
int "The maximum number of channel messages"
|
|
|
|
default 1024
|
|
|
|
|
|
|
|
config LWP_TID_MAX_NR
|
|
|
|
int "The maximum number of lwp thread id"
|
|
|
|
default 64
|
|
|
|
|
|
|
|
config LWP_ENABLE_ASID
|
|
|
|
bool "The switch of ASID feature"
|
|
|
|
depends on ARCH_ARM_CORTEX_A
|
|
|
|
default y
|
|
|
|
|
|
|
|
if ARCH_MM_MMU
|
|
|
|
config RT_LWP_SHM_MAX_NR
|
|
|
|
int "The maximum number of shared memory"
|
|
|
|
default 64
|
2024-06-22 13:30:55 +08:00
|
|
|
|
|
|
|
config LWP_USING_MPROTECT
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
ARCH has the support of mprotect
|
2022-12-03 12:07:44 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ARCH_MM_MPU
|
|
|
|
config RT_LWP_MPU_MAX_NR
|
|
|
|
int "The maximum number of mpu region"
|
|
|
|
default 2
|
|
|
|
|
|
|
|
config RT_LWP_USING_SHM
|
|
|
|
bool "Enable shared memory"
|
|
|
|
default y
|
|
|
|
endif
|
|
|
|
|
2023-10-17 13:07:59 +08:00
|
|
|
menuconfig RT_USING_LDSO
|
|
|
|
bool "LDSO: dynamic load shared objects"
|
2023-10-20 13:18:11 +08:00
|
|
|
depends on RT_USING_DFS_V2
|
|
|
|
select RT_USING_PAGECACHE
|
|
|
|
default y
|
2023-10-17 13:07:59 +08:00
|
|
|
|
|
|
|
if RT_USING_LDSO
|
|
|
|
config ELF_DEBUG_ENABLE
|
|
|
|
bool "Enable ldso debug"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ELF_LOAD_RANDOMIZE
|
|
|
|
bool "Enable random load address"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2024-06-11 12:13:25 +08:00
|
|
|
rsource "terminal/Kconfig"
|
2024-07-15 17:58:29 +08:00
|
|
|
rsource "vdso/Kconfig"
|
2022-12-03 12:07:44 +08:00
|
|
|
endif
|
2023-10-17 13:07:59 +08:00
|
|
|
|