summaryrefslogtreecommitdiff
path: root/nuttx/arch/sh/src/common/up_reprioritizertr.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-08 16:27:11 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-08 16:27:11 +0000
commit94ad22d83ced0c372de9dc5d38317293c66d629c (patch)
tree741a1209b0d6d52e6af88f442ebbc6db6f10b815 /nuttx/arch/sh/src/common/up_reprioritizertr.c
parentc8e4cbd63bba53290014a54d854286a14798580e (diff)
downloadpx4-nuttx-94ad22d83ced0c372de9dc5d38317293c66d629c.tar.gz
px4-nuttx-94ad22d83ced0c372de9dc5d38317293c66d629c.tar.bz2
px4-nuttx-94ad22d83ced0c372de9dc5d38317293c66d629c.zip
Enhanced context switch performance
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1167 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/sh/src/common/up_reprioritizertr.c')
-rw-r--r--nuttx/arch/sh/src/common/up_reprioritizertr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/sh/src/common/up_reprioritizertr.c b/nuttx/arch/sh/src/common/up_reprioritizertr.c
index 437651d0f..dccc6ad4a 100644
--- a/nuttx/arch/sh/src/common/up_reprioritizertr.c
+++ b/nuttx/arch/sh/src/common/up_reprioritizertr.c
@@ -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