summaryrefslogtreecommitdiff
path: root/nuttx/arch/hc/src/common/up_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/hc/src/common/up_internal.h')
-rwxr-xr-xnuttx/arch/hc/src/common/up_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/hc/src/common/up_internal.h b/nuttx/arch/hc/src/common/up_internal.h
index 8879eee57..1a30f28e5 100755
--- a/nuttx/arch/hc/src/common/up_internal.h
+++ b/nuttx/arch/hc/src/common/up_internal.h
@@ -81,7 +81,7 @@
* a referenced is passed to get the state from the TCB.
*/
-#define up_savestate(regs) up_copystate(regs, current_regs)
+#define up_savestate(regs) up_copystate(regs, (uint8_t*)current_regs)
#define up_restorestate(regs) (current_regs = regs)
/****************************************************************************