summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/common
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-07-23 19:09:17 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-07-23 19:09:17 -0600
commite7c51efc4afbb7652662afc4820504bb05c9d4bc (patch)
tree9396bfdb2df87a4253fdf8eafcb7709471feaa84 /nuttx/arch/arm/src/common
parent0d5c6f5ba0e21048316e15c63ae4c7eeca269ba0 (diff)
downloadnuttx-e7c51efc4afbb7652662afc4820504bb05c9d4bc.tar.gz
nuttx-e7c51efc4afbb7652662afc4820504bb05c9d4bc.tar.bz2
nuttx-e7c51efc4afbb7652662afc4820504bb05c9d4bc.zip
ARMv7-N: Fix a copy error introduced in the previous check-in
Diffstat (limited to 'nuttx/arch/arm/src/common')
-rw-r--r--nuttx/arch/arm/src/common/up_internal.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/nuttx/arch/arm/src/common/up_internal.h b/nuttx/arch/arm/src/common/up_internal.h
index 86e49004c..495b51b24 100644
--- a/nuttx/arch/arm/src/common/up_internal.h
+++ b/nuttx/arch/arm/src/common/up_internal.h
@@ -128,12 +128,7 @@
*/
# if defined(CONFIG_ARCH_FPU) && !defined(CONFIG_ARMV7M_CMNVECTOR)
-# define up_savestate(regs) \
- do { \
- up_copyarmstate(regs, (uint32_t*)current_regs); \
- up_savefpu(regs); \
- } \
- while (0)
+# define up_savestate(regs) up_copyarmstate(regs, (uint32_t*)current_regs)
# else
# define up_savestate(regs) up_copyfullstate(regs, (uint32_t*)current_regs)
# endif
@@ -151,12 +146,7 @@
*/
# if defined(CONFIG_ARCH_FPU)
-# define up_savestate(regs) \
- do { \
- up_copyarmstate(regs, (uint32_t*)current_regs); \
- up_savefpu(regs); \
- } \
- while (0)
+# define up_savestate(regs) up_copyarmstate(regs, (uint32_t*)current_regs)
# else
# define up_savestate(regs) up_copyfullstate(regs, (uint32_t*)current_regs)
# endif