4 * Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/)
5 * Copyright 1999,2000,2001 Bernardo Innocenti <bernie@develer.com>
6 * This file is part of DevLib - See devlib/README for information.
9 * \brief Process scheduler (public interface).
13 * \author Bernardo Innocenti <bernie@develer.com>
18 * Revision 1.2 2004/06/03 11:27:09 bernie
19 * Add dual-license information.
21 * Revision 1.1 2004/05/23 17:27:00 bernie
22 * Import kern/ subdirectory.
31 #include "config_kern.h"
36 /* Task scheduling services */
38 struct Process *proc_new(void (*entry)(void), size_t stacksize, cpustack_t *stack);
40 void proc_switch(void);
42 struct Process* proc_current(void);
44 #if CONFIG_KERN_PREEMPTIVE
45 #define FORBID proc_forbid()
46 #define PERMIT proc_permit()
52 #endif /* KERN_PROC_H */