diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-08 16:27:11 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-08 16:27:11 +0000 |
commit | 94ad22d83ced0c372de9dc5d38317293c66d629c (patch) | |
tree | 741a1209b0d6d52e6af88f442ebbc6db6f10b815 /nuttx/arch/sh/src | |
parent | c8e4cbd63bba53290014a54d854286a14798580e (diff) | |
download | px4-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')
-rw-r--r-- | nuttx/arch/sh/src/common/up_blocktask.c | 2 | ||||
-rw-r--r-- | nuttx/arch/sh/src/common/up_releasepending.c | 2 | ||||
-rw-r--r-- | nuttx/arch/sh/src/common/up_reprioritizertr.c | 2 | ||||
-rw-r--r-- | nuttx/arch/sh/src/common/up_unblocktask.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/arch/sh/src/common/up_blocktask.c b/nuttx/arch/sh/src/common/up_blocktask.c index 3a9e8b5fa..154f3912f 100644 --- a/nuttx/arch/sh/src/common/up_blocktask.c +++ b/nuttx/arch/sh/src/common/up_blocktask.c @@ -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 diff --git a/nuttx/arch/sh/src/common/up_releasepending.c b/nuttx/arch/sh/src/common/up_releasepending.c index 709ce3fb4..ff5f17ccf 100644 --- a/nuttx/arch/sh/src/common/up_releasepending.c +++ b/nuttx/arch/sh/src/common/up_releasepending.c @@ -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 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 diff --git a/nuttx/arch/sh/src/common/up_unblocktask.c b/nuttx/arch/sh/src/common/up_unblocktask.c index 684993ba4..c70549953 100644 --- a/nuttx/arch/sh/src/common/up_unblocktask.c +++ b/nuttx/arch/sh/src/common/up_unblocktask.c @@ -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 |