Enhanced context switch performance

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1167 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-11-08 16:27:11 +00:00
parent 811a2d02af
commit 5cb5ba51ae
4 changed files with 4 additions and 4 deletions

View File

@ -139,7 +139,7 @@ void up_block_task(_TCB *tcb, tstate_t task_state)
/* Then switch contexts */
up_copystate(current_regs, rtcb->xcp.regs);
current_regs = rtcb->xcp.regs;
}
/* Copy the user C context into the TCB at the (old) head of the

View File

@ -105,7 +105,7 @@ void up_release_pending(void)
/* Then switch contexts */
up_copystate(current_regs, rtcb->xcp.regs);
current_regs = rtcb->xcp.regs;
}
/* Copy the exception context into the TCB of the task that

View File

@ -153,7 +153,7 @@ void up_reprioritize_rtr(_TCB *tcb, ubyte priority)
/* Then switch contexts */
up_copystate(current_regs, rtcb->xcp.regs);
current_regs = rtcb->xcp.regs;
}
/* Copy the exception context into the TCB at the (old) head of the

View File

@ -131,7 +131,7 @@ void up_unblock_task(_TCB *tcb)
/* Then switch contexts */
up_copystate(current_regs, rtcb->xcp.regs);
current_regs = rtcb->xcp.regs;
}
/* We are not in an interrupt handler. Copy the user C context