projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix SPI1 activation bug. Now SPI1 on at91sam7x is fully functional.
[bertos.git]
/
bertos
/
kern
/
idle.c
diff --git
a/bertos/kern/idle.c
b/bertos/kern/idle.c
index 2ea379c8c8c7bb0358b345339c23df4ae26ec210..810560a1a790f6d4a5ed96ff80f66b7354a57d8f 100644
(file)
--- a/
bertos/kern/idle.c
+++ b/
bertos/kern/idle.c
@@
-31,16
+31,18
@@
*
* \brief Idle loop for preemptive scheduling
*
*
* \brief Idle loop for preemptive scheduling
*
- * \version $Id
: proc.c 1616 2008-08-10 19:41:26Z bernie
$
+ * \version $Id$
* \author Bernie Innocenti <bernie@codewiz.org>
*/
* \author Bernie Innocenti <bernie@codewiz.org>
*/
+#include "idle.h"
#include "proc.h"
#include <cfg/module.h>
#include "proc.h"
#include <cfg/module.h>
-static cpustack_t idle_stack[CONFIG_PROC_DEFSTACKSIZE / sizeof(cpustack_t)];
+// below there's a TRACE so we need a big stack
+PROC_DEFINE_STACK(idle_stack, KERN_MINSTACKSIZE * 2);
/**
* The idle process
/**
* The idle process
@@
-66,6
+68,6
@@
static NORETURN void idle(void)
void idle_init(void)
{
void idle_init(void)
{
- Process *idle_proc = proc_new(idle, NULL, sizeof(idle_stack), idle_stack);
+
struct
Process *idle_proc = proc_new(idle, NULL, sizeof(idle_stack), idle_stack);
proc_setPri(idle_proc, (int)~0);
}
proc_setPri(idle_proc, (int)~0);
}