Remove plenty of legacy names marked as OBSOLETE
[bertos.git] / bertos / kern / proc.h
index a2a7b283e9d93c6622e523bc4e5ca3650d88b734..6f1a8af5be69c463a860e760fcebb53f31b835fb 100644 (file)
@@ -65,7 +65,6 @@ struct Process *proc_new_with_name(const char* name, void (*entry)(void), iptr_t
 
 void proc_exit(void);
 void proc_yield(void);
-#define proc_switch proc_yield /* OBSOLETE */
 
 int proc_testSetup(void);
 int proc_testRun(void);
@@ -77,6 +76,14 @@ void proc_rename(struct Process *proc, const char *name);
 const char *proc_name(struct Process *proc);
 const char *proc_currentName(void);
 
+#if CONFIG_KERN_PRI
+       void proc_setPri(struct Process *proc, int pri);
+#else
+       INLINE void proc_setPri(UNUSED_ARG(struct Process *,proc), UNUSED_ARG(int, pri))
+       {
+       }
+#endif
+
 /**
  * Disable preemptive task switching.
  *
@@ -149,11 +156,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,7 +181,7 @@ 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