projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add test ARCH; remove macros.h dependency to allow to include this file also in prepr...
[bertos.git]
/
bertos
/
kern
/
proc.c
diff --git
a/bertos/kern/proc.c
b/bertos/kern/proc.c
index 577f0db43e2d8a6925b55e09229c5461d69a715d..3ee3037bbf8ed6dacdff119cd45dde88f3ec5bf0 100644
(file)
--- a/
bertos/kern/proc.c
+++ b/
bertos/kern/proc.c
@@
-30,8
+30,7
@@
* Copyright 1999, 2000, 2001, 2008 Bernie Innocenti <bernie@codewiz.org>
* -->
*
* Copyright 1999, 2000, 2001, 2008 Bernie Innocenti <bernie@codewiz.org>
* -->
*
- * \brief Simple realtime multitasking scheduler.
- * Context switching is only done cooperatively.
+ * \brief Simple cooperative multitasking scheduler.
*
* \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
*
* \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
@@
-51,6
+50,10
@@
#include <cpu/attr.h>
#include <cpu/frame.h>
#include <cpu/attr.h>
#include <cpu/frame.h>
+#if CONFIG_KERN_HEAP
+ #include <struct/heap.h>
+#endif
+
#include <string.h> /* memset() */
// Check config dependencies
#include <string.h> /* memset() */
// Check config dependencies
@@
-354,7
+357,7
@@
void proc_exit(void)
#endif /* ARCH_EMUL */
CurrentProcess = NULL;
#endif /* ARCH_EMUL */
CurrentProcess = NULL;
- proc_s
chedule
();
+ proc_s
witch
();
/* not reached */
}
/* not reached */
}