void proc_exit(void);
void proc_yield(void);
-#define proc_switch proc_yield /* OBSOLETE */
int proc_testSetup(void);
int proc_testRun(void);
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.
*
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.
* 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