diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-17 17:18:19 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-17 17:18:19 +0000 |
commit | 0fa834d4332608374852575437d2714f820868c4 (patch) | |
tree | 4e57188abe5ff32b2639ca69314fec94378bed8d /nuttx/arch/arm/src/common/up_unblocktask.c | |
parent | 0368c4fac2539f3a8812f9471e9be74fb7aeb303 (diff) | |
download | px4-nuttx-0fa834d4332608374852575437d2714f820868c4.tar.gz px4-nuttx-0fa834d4332608374852575437d2714f820868c4.tar.bz2 px4-nuttx-0fa834d4332608374852575437d2714f820868c4.zip |
Debug Cortex-M3 interrupts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1787 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/common/up_unblocktask.c')
-rw-r--r-- | nuttx/arch/arm/src/common/up_unblocktask.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/common/up_unblocktask.c b/nuttx/arch/arm/src/common/up_unblocktask.c index a657a1b84..ea64ed1c6 100644 --- a/nuttx/arch/arm/src/common/up_unblocktask.c +++ b/nuttx/arch/arm/src/common/up_unblocktask.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/arm/src/common/up_unblocktask.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 @@ -121,7 +121,7 @@ void up_unblock_task(_TCB *tcb) * 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. @@ -131,7 +131,7 @@ void up_unblock_task(_TCB *tcb) /* Then switch contexts */ - up_copystate(current_regs, rtcb->xcp.regs); + up_restorestate(rtcb->xcp.regs); } /* We are not in an interrupt handler. Copy the user C context |