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.3 2004/07/30 14:31:23 rasky
19 * Hunk sfuggito al commit precedente (aggiornamento kernel)
21 * Revision 1.2 2004/06/03 11:27:09 bernie
22 * Add dual-license information.
24 * Revision 1.1 2004/05/23 17:27:00 bernie
25 * Import kern/ subdirectory.
34 #include "config_kern.h"
39 /* Task scheduling services */
41 struct Process *proc_new(void (*entry)(void), size_t stacksize, cpustack_t *stack);
43 void proc_switch(void);
45 struct Process* proc_current(void);
47 #if CONFIG_KERN_MONITOR
48 size_t monitor_check_stack(cpustack_t* stack_base, size_t stack_size);
49 void monitor_debug_stacks(void);
52 #if CONFIG_KERN_PREEMPTIVE
53 #define FORBID proc_forbid()
54 #define PERMIT proc_permit()
60 #endif /* KERN_PROC_H */