aboutsummaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/armv7-m/up_releasepending.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-02-25 19:32:16 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-02-25 19:32:16 +0000
commitfe55532f34fc7401baa6e9f2943a716998e1a20b (patch)
tree1e8d368264b8934379ede246b662f8d0c0aa488a /nuttx/arch/arm/src/armv7-m/up_releasepending.c
parenta69d50a48878f1a3f94e3cd9365717ad050c2211 (diff)
downloadpx4-firmware-fe55532f34fc7401baa6e9f2943a716998e1a20b.tar.gz
px4-firmware-fe55532f34fc7401baa6e9f2943a716998e1a20b.tar.bz2
px4-firmware-fe55532f34fc7401baa6e9f2943a716998e1a20b.zip
Fix bugs in lazy FPU register saving
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4427 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/arm/src/armv7-m/up_releasepending.c')
-rwxr-xr-xnuttx/arch/arm/src/armv7-m/up_releasepending.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/nuttx/arch/arm/src/armv7-m/up_releasepending.c b/nuttx/arch/arm/src/armv7-m/up_releasepending.c
index 20b953543..2f0d4dc39 100755
--- a/nuttx/arch/arm/src/armv7-m/up_releasepending.c
+++ b/nuttx/arch/arm/src/armv7-m/up_releasepending.c
@@ -1,8 +1,8 @@
/****************************************************************************
* arch/arm/src/armv7-m/up_releasepending.c
*
- * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Copyright (C) 2007-2009, 2012 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -84,15 +84,14 @@ void up_release_pending(void)
/* sched_lock(); */
if (sched_mergepending())
{
- /* The currently active task has changed! We will need to
- * switch contexts. First check if we are operating in
- * interrupt context:
+ /* The currently active task has changed! We will need to switch
+ * contexts. First check if we are operating in interrupt context.
*/
if (current_regs)
{
- /* Yes, then we have to do things differently.
- * Just copy the current_regs into the OLD rtcb.
+ /* Yes, then we have to do things differently. Just copy the
+ * current_regs into the OLD rtcb.
*/
up_savestate(rtcb->xcp.regs);