anchao commented on code in PR #18072:
URL: https://github.com/apache/nuttx/pull/18072#discussion_r2726391764
##########
sched/wqueue/kwork_thread.c:
##########
@@ -93,6 +93,15 @@ struct hp_wqueue_s g_hpwork =
}
};
+#ifdef SCHED_HPWORKSTACKSECTION
+static uint8_t g_hp_work_stack[CONFIG_SCHED_HPNTHREADS]
Review Comment:
stack type should align with arch requirement
##########
sched/wqueue/kwork_thread.c:
##########
@@ -550,7 +576,9 @@ int work_start_highpri(void)
sinfo("Starting high-priority kernel worker thread(s)\n");
- return work_thread_create(HPWORKNAME, CONFIG_SCHED_HPWORKPRIORITY, NULL,
+ return work_thread_create(HPWORKNAME,
+ CONFIG_SCHED_HPWORKPRIORITY,
+ g_hp_work_stack,
Review Comment:
enable static stack only if *STACKSECTION is defined
##########
boards/arm/lpc17xx_40xx/lpc4088-devkit/scripts/memory.ld:
##########
@@ -75,9 +75,9 @@ MEMORY
/* 64Kb of SRAM in the CPU block */
- ksram (rwx) : ORIGIN = 0x10000000, LENGTH = 6K /* May include waste */
- usram (rwx) : ORIGIN = 0x10001800, LENGTH = 4K
- xsram (rwx) : ORIGIN = 0x10002800, LENGTH = 22K /* All used as heap */
+ ksram (rwx) : ORIGIN = 0x10000000, LENGTH = 8K /* May include waste */
Review Comment:
revert
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]