projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix UNITTEST ARCH declaration.
[bertos.git]
/
bertos
/
kern
/
coop.c
diff --git
a/bertos/kern/coop.c
b/bertos/kern/coop.c
index dd3aee211d82db28b7123194247480efda92d541..16cb5811baf1ffae089dd421393380ff0ab3d005 100644
(file)
--- a/
bertos/kern/coop.c
+++ b/
bertos/kern/coop.c
@@
-69,7
+69,7
@@
static void proc_schedule(void)
ATOMIC(LIST_ASSERT_VALID(&ProcReadyList));
ASSERT_USER_CONTEXT();
ATOMIC(LIST_ASSERT_VALID(&ProcReadyList));
ASSERT_USER_CONTEXT();
-
ASSERT_IRQ
_ENABLED();
+
IRQ_ASSERT
_ENABLED();
/* Poll on the ready queue for the first ready process */
IRQ_SAVE_DISABLE(flags);
/* Poll on the ready queue for the first ready process */
IRQ_SAVE_DISABLE(flags);
@@
-101,7
+101,7
@@
static void proc_schedule(void)
void proc_switch(void)
{
/* Remember old process to save its context later */
void proc_switch(void)
{
/* Remember old process to save its context later */
-
const Process *
old_process = CurrentProcess;
+
Process * const
old_process = CurrentProcess;
proc_schedule();
proc_schedule();