summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nuttx/arch/sh/src/common/up_blocktask.c2
-rw-r--r--nuttx/arch/sh/src/common/up_releasepending.c2
-rw-r--r--nuttx/arch/sh/src/common/up_reprioritizertr.c2
-rw-r--r--nuttx/arch/sh/src/common/up_unblocktask.c2
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