From: Alan Cox Date: Mon, 12 Sep 2016 23:18:18 +0000 (+0100) Subject: kernel: allow stack size to be set by platform X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c4aa4695cce3dd3251f6e1af42c33d766127d95a;p=FUZIX.git kernel: allow stack size to be set by platform --- 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;