Skip to content

Commit b4b6b18

Browse files
tinghan-shenlgirdwood
authored andcommitted
platform: mt8186: Use stack size configuration
Instead of a constant in the header file, allow fine tuning the stack size via settings for various use cases. Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com>
1 parent 43a4ddc commit b4b6b18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/platform/mt8186/include/platform/lib

src/platform/mt8186/include/platform/lib/memory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
#define PLATFORM_HEAP_BUFFER 1
151151

152152
/* Stack configuration */
153-
#define SOF_STACK_SIZE 0x8000
153+
#define SOF_STACK_SIZE (CONFIG_SOF_STACK_SIZE)
154154
#define SOF_STACK_TOTAL_SIZE SOF_STACK_SIZE /*4KB*/
155155
#define SOF_STACK_BASE (DRAM_BASE + DRAM0_SIZE)
156156
#define SOF_STACK_END (SOF_STACK_BASE - SOF_STACK_TOTAL_SIZE)

0 commit comments

Comments
 (0)