mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Introduce CONFIG_DEFAULT_TASK_STACKSIZE
* The appropriate size of stack varies among archs. E.g. for 64-bit sim, 2048 is way too small, especially when the task happens to use host OS functionalities. I plan to allow an arch provide its own default. * I plan to use this to replace hardcoded "STACKSIZE = 2048" in APPDIR.
This commit is contained in:
committed by
Xiang Xiao
parent
44b8f3e467
commit
f8077022bd
@@ -27,6 +27,12 @@ config DEFAULT_SMALL
|
|||||||
have already been selected in your configuration file. This applies
|
have already been selected in your configuration file. This applies
|
||||||
only to new settings that require a default value.
|
only to new settings that require a default value.
|
||||||
|
|
||||||
|
config DEFAULT_TASK_STACKSIZE
|
||||||
|
int "The default stack size for tasks"
|
||||||
|
default 2048
|
||||||
|
---help---
|
||||||
|
The default stack size for tasks.
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Build Host Platform"
|
prompt "Build Host Platform"
|
||||||
default HOST_LINUX
|
default HOST_LINUX
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ config ELF_ALIGN_LOG2
|
|||||||
|
|
||||||
config ELF_STACKSIZE
|
config ELF_STACKSIZE
|
||||||
int "ELF Stack Size"
|
int "ELF Stack Size"
|
||||||
default 2048
|
default DEFAULT_TASK_STACKSIZE
|
||||||
---help---
|
---help---
|
||||||
This is the default stack size that will be used when starting ELF binaries.
|
This is the default stack size that will be used when starting ELF binaries.
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ comment "NX Server Options"
|
|||||||
|
|
||||||
config SIM_LISTENER_STACKSIZE
|
config SIM_LISTENER_STACKSIZE
|
||||||
int "NX Server/Listener Stack Size"
|
int "NX Server/Listener Stack Size"
|
||||||
default 2048
|
default DEFAULT_TASK_STACKSIZE
|
||||||
---help---
|
---help---
|
||||||
The stacksize to use when creating the NX server. Default 2048
|
The stacksize to use when creating the NX server. Default 2048
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ config NET_RPMSG_PRIORITY
|
|||||||
|
|
||||||
config NET_RPMSG_STACKSIZE
|
config NET_RPMSG_STACKSIZE
|
||||||
int "net rpmsg stack size"
|
int "net rpmsg stack size"
|
||||||
default 2048
|
default DEFAULT_TASK_STACKSIZE
|
||||||
---help---
|
---help---
|
||||||
The stack size allocated for the net rpmsg task.
|
The stack size allocated for the net rpmsg task.
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ config POSIX_SPAWN_PROXY_STACKSIZE
|
|||||||
|
|
||||||
config TASK_SPAWN_DEFAULT_STACKSIZE
|
config TASK_SPAWN_DEFAULT_STACKSIZE
|
||||||
int "Default task_spawn Stack Size"
|
int "Default task_spawn Stack Size"
|
||||||
default 2048
|
default DEFAULT_TASK_STACKSIZE
|
||||||
depends on !ARCH_ADDRENV
|
depends on !ARCH_ADDRENV
|
||||||
---help---
|
---help---
|
||||||
The actual size to use for the child task's stack can be set with
|
The actual size to use for the child task's stack can be set with
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ config LIB_USRWORKPRIORITY
|
|||||||
|
|
||||||
config LIB_USRWORKSTACKSIZE
|
config LIB_USRWORKSTACKSIZE
|
||||||
int "User mode worker thread stack size"
|
int "User mode worker thread stack size"
|
||||||
default 2048
|
default DEFAULT_TASK_STACKSIZE
|
||||||
---help---
|
---help---
|
||||||
The stack size allocated for the lower priority worker thread. Default: 2K.
|
The stack size allocated for the lower priority worker thread. Default: 2K.
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -184,9 +184,9 @@ config SLIP_NINTERFACES
|
|||||||
|
|
||||||
config SLIP_STACKSIZE
|
config SLIP_STACKSIZE
|
||||||
int "SLIP stack size"
|
int "SLIP stack size"
|
||||||
default 2048
|
default DEFAULT_TASK_STACKSIZE
|
||||||
---help---
|
---help---
|
||||||
Select the stack size of the SLIP RX and TX tasks. Default: 2048
|
Select the stack size of the SLIP RX and TX tasks.
|
||||||
|
|
||||||
config SLIP_DEFPRIO
|
config SLIP_DEFPRIO
|
||||||
int "SLIP priority"
|
int "SLIP priority"
|
||||||
|
|||||||
+6
-6
@@ -329,7 +329,7 @@ config SMP_NCPUS
|
|||||||
|
|
||||||
config SMP_IDLETHREAD_STACKSIZE
|
config SMP_IDLETHREAD_STACKSIZE
|
||||||
int "CPU IDLE stack size"
|
int "CPU IDLE stack size"
|
||||||
default 2048
|
default DEFAULT_TASK_STACKSIZE
|
||||||
---help---
|
---help---
|
||||||
Each CPU will have its own IDLE task. System initialization occurs
|
Each CPU will have its own IDLE task. System initialization occurs
|
||||||
on CPU0 and uses CONFIG_IDLETHREAD_STACKSIZE which will probably be
|
on CPU0 and uses CONFIG_IDLETHREAD_STACKSIZE which will probably be
|
||||||
@@ -1272,7 +1272,7 @@ if BOARD_LATE_INITIALIZE
|
|||||||
|
|
||||||
config BOARD_INITTHREAD_STACKSIZE
|
config BOARD_INITTHREAD_STACKSIZE
|
||||||
int "Board initialization thread stack size"
|
int "Board initialization thread stack size"
|
||||||
default 2048
|
default DEFAULT_TASK_STACKSIZE
|
||||||
---help---
|
---help---
|
||||||
The size of the stack to allocate when starting the board
|
The size of the stack to allocate when starting the board
|
||||||
initialization thread.
|
initialization thread.
|
||||||
@@ -1656,7 +1656,7 @@ config SCHED_HPWORKPRIORITY
|
|||||||
|
|
||||||
config SCHED_HPWORKSTACKSIZE
|
config SCHED_HPWORKSTACKSIZE
|
||||||
int "High priority worker thread stack size"
|
int "High priority worker thread stack size"
|
||||||
default 2048
|
default DEFAULT_TASK_STACKSIZE
|
||||||
---help---
|
---help---
|
||||||
The stack size allocated for the worker thread. Default: 2K.
|
The stack size allocated for the worker thread. Default: 2K.
|
||||||
|
|
||||||
@@ -1755,7 +1755,7 @@ config SCHED_LPWORKPRIOMAX
|
|||||||
|
|
||||||
config SCHED_LPWORKSTACKSIZE
|
config SCHED_LPWORKSTACKSIZE
|
||||||
int "Low priority worker thread stack size"
|
int "Low priority worker thread stack size"
|
||||||
default 2048
|
default DEFAULT_TASK_STACKSIZE
|
||||||
---help---
|
---help---
|
||||||
The stack size allocated for the lower priority worker thread. Default: 2K.
|
The stack size allocated for the lower priority worker thread. Default: 2K.
|
||||||
|
|
||||||
@@ -1775,7 +1775,7 @@ config IDLETHREAD_STACKSIZE
|
|||||||
|
|
||||||
config USERMAIN_STACKSIZE
|
config USERMAIN_STACKSIZE
|
||||||
int "Main thread stack size"
|
int "Main thread stack size"
|
||||||
default 2048
|
default DEFAULT_TASK_STACKSIZE
|
||||||
---help---
|
---help---
|
||||||
The size of the stack to allocate for the user initialization thread
|
The size of the stack to allocate for the user initialization thread
|
||||||
that is started as soon as the OS completes its initialization.
|
that is started as soon as the OS completes its initialization.
|
||||||
@@ -1788,7 +1788,7 @@ config PTHREAD_STACK_MIN
|
|||||||
|
|
||||||
config PTHREAD_STACK_DEFAULT
|
config PTHREAD_STACK_DEFAULT
|
||||||
int "Default pthread stack size"
|
int "Default pthread stack size"
|
||||||
default 2048
|
default DEFAULT_TASK_STACKSIZE
|
||||||
---help---
|
---help---
|
||||||
Default pthread stack size
|
Default pthread stack size
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user