From: bernie Date: Sat, 23 Aug 2008 07:38:51 +0000 (+0000) Subject: CONFIG_KERN_MINSTACKSIZE: rename from CONFIG_PROC_DEFSTACKSIZE for consistency X-Git-Tag: 2.0.0~258 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b533b06587ec86967098af153269dbbf1e2dd450;p=bertos.git CONFIG_KERN_MINSTACKSIZE: rename from CONFIG_PROC_DEFSTACKSIZE for consistency git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1676 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/kern/proc.h b/bertos/kern/proc.h index a2a7b283..db681ede 100644 --- a/bertos/kern/proc.h +++ b/bertos/kern/proc.h @@ -149,11 +149,11 @@ INLINE void proc_permit(void) proc_permit(); \ } while(0) -#ifndef CONFIG_PROC_DEFSTACKSIZE +#ifndef CONFIG_KERN_MINSTACKSIZE #if (ARCH & ARCH_EMUL) /* We need a large stack because system libraries are bloated */ - #define CONFIG_PROC_DEFSTACKSIZE 65536 + #define CONFIG_KERN_MINSTACKSIZE 65536 #else /** * Default stack size for each thread, in bytes. @@ -174,12 +174,14 @@ INLINE void proc_permit(void) * required per process. Use irqmanager to minimize stack * usage. */ - #define CONFIG_PROC_DEFSTACKSIZE \ + #define CONFIG_KERN_MINSTACKSIZE \ (CPU_SAVED_REGS_CNT * 2 * sizeof(cpustack_t) \ + 32 * sizeof(int)) #endif #endif +#define CONFIG_PROC_DEFSTACKSIZE CONFIG_KERN_MINSTACKSIZE // OBSOLETE + /* Memory fill codes to help debugging */ #if CONFIG_KERN_MONITOR #include