From c4aa4695cce3dd3251f6e1af42c33d766127d95a Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 13 Sep 2016 00:18:18 +0100 Subject: [PATCH] kernel: allow stack size to be set by platform --- Kernel/include/kernel.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Kernel/include/kernel.h b/Kernel/include/kernel.h index 58928753..c75814ef 100644 --- a/Kernel/include/kernel.h +++ b/Kernel/include/kernel.h @@ -472,9 +472,14 @@ typedef struct u_data { /* This is the user data structure, padded out to 512 bytes with the * System Stack. */ + +#ifndef CONFIG_STACKSIZE +#define CONFIG_STACKSIZE 512 +#endif + typedef struct u_block { u_data u_d; - char u_s [512 - sizeof(struct u_data)]; + char u_s [CONFIG_STACKSIZE - sizeof(struct u_data)]; } u_block; -- 2.34.1