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:
parent
811a2d02af
commit
5cb5ba51ae
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user