diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-17 21:32:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-17 21:32:21 +0000 |
commit | e9faebc794c798462a34d5fae9c922d46e95a374 (patch) | |
tree | 41f650510bb4f327ed7bf981fac39bef006d8bb7 /nuttx/arch/dm320 | |
parent | 054179a134bf123279f6c3774a773d838e95c181 (diff) | |
download | px4-nuttx-e9faebc794c798462a34d5fae9c922d46e95a374.tar.gz px4-nuttx-e9faebc794c798462a34d5fae9c922d46e95a374.tar.bz2 px4-nuttx-e9faebc794c798462a34d5fae9c922d46e95a374.zip |
Add test of roundrobin scheduler (still does not work)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@81 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/dm320')
-rw-r--r-- | nuttx/arch/dm320/src/up_reprioritizertr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/dm320/src/up_reprioritizertr.c b/nuttx/arch/dm320/src/up_reprioritizertr.c index 414b410d0..b416d7dfe 100644 --- a/nuttx/arch/dm320/src/up_reprioritizertr.c +++ b/nuttx/arch/dm320/src/up_reprioritizertr.c @@ -155,12 +155,13 @@ void up_reprioritize_rtr(_TCB *tcb, ubyte priority) up_copystate(current_regs, rtcb->xcp.regs); } + /* Copy the exception context into the TCB at the (old) head of the * g_readytorun Task list. if up_saveusercontext returns a non-zero * value, then this is really the previously running task restarting! */ - if (!up_saveusercontext(rtcb->xcp.regs)) + else if (!up_saveusercontext(rtcb->xcp.regs)) { /* Restore the exception context of the rtcb at the (new) head * of the g_readytorun task list. |