CONFIG_KERN_MINSTACKSIZE: rename from CONFIG_PROC_DEFSTACKSIZE for consistency
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 23 Aug 2008 07:38:51 +0000 (07:38 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 23 Aug 2008 07:38:51 +0000 (07:38 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1676 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/kern/proc.h

index a2a7b283e9d93c6622e523bc4e5ca3650d88b734..db681ede2c828535dafad80376004d74f32552b2 100644 (file)
@@ -149,11 +149,11 @@ INLINE void proc_permit(void)
                proc_permit(); \
        } while(0)
 
                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 */
 
        #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.
        #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.
                 */
                 * 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
 
                    (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 <cpu/types.h>
 /* Memory fill codes to help debugging */
 #if CONFIG_KERN_MONITOR
        #include <cpu/types.h>