Skip to content
Snippets Groups Projects
Commit 5cb5ba51 authored by patacongo's avatar patacongo
Browse files

Enhanced context switch performance

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1167 42af7a65-404d-4744-a932-0658087f49c3
parent 811a2d02
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment