summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/common/up_releasepending.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/common/up_releasepending.c')
-rw-r--r--nuttx/arch/arm/src/common/up_releasepending.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/common/up_releasepending.c b/nuttx/arch/arm/src/common/up_releasepending.c
index d62fb25c2..d81479e87 100644
--- a/nuttx/arch/arm/src/common/up_releasepending.c
+++ b/nuttx/arch/arm/src/common/up_releasepending.c
@@ -1,7 +1,7 @@
/****************************************************************************
* arch/arm/src/common/up_releasepending.c
*
- * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -94,7 +94,7 @@ void up_release_pending(void)
* Just copy the current_regs into the OLD rtcb.
*/
- up_copystate(rtcb->xcp.regs, current_regs);
+ up_savestate(rtcb->xcp.regs);
/* Restore the exception context of the rtcb at the (new) head
* of the g_readytorun task list.
@@ -105,7 +105,7 @@ void up_release_pending(void)
/* Then switch contexts */
- up_copystate(current_regs, rtcb->xcp.regs);
+ up_restorestate(rtcb->xcp.regs);
}
/* Copy the exception context into the TCB of the task that