summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/m68k/rtems/score/cpu.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-04-08 16:37:34 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-04-08 16:37:34 +0000
commit4ad5526709f61e331db6054d3b8e936ebff772ca (patch)
treeec2b3f0bba068acc45f4f224f762267ae9fa8994 /cpukit/score/cpu/m68k/rtems/score/cpu.h
parent2010-04-08 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-4ad5526709f61e331db6054d3b8e936ebff772ca.tar.bz2
2010-04-08 Till Straumann <strauman@slac.stanford.edu>
* cpu_asm.S, rtems/score/cpu.h: On uC5282, the thread restart needed to reload the frame pointer. As part of doing this, the code was moved from inline asm to the .S file.
Diffstat (limited to 'cpukit/score/cpu/m68k/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/m68k/rtems/score/cpu.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/cpukit/score/cpu/m68k/rtems/score/cpu.h b/cpukit/score/cpu/m68k/rtems/score/cpu.h
index 9b004ccfc6..461f3dbc28 100644
--- a/cpukit/score/cpu/m68k/rtems/score/cpu.h
+++ b/cpukit/score/cpu/m68k/rtems/score/cpu.h
@@ -472,14 +472,6 @@ uint32_t _CPU_ISR_Get_level( void );
} while ( 0 )
#endif
-#define _CPU_Context_Restart_self( _the_context ) \
- { asm volatile( "movew %0,%%sr ; " \
- "moval %1,%%a7 ; " \
- "rts" \
- : "=d" ((_the_context)->sr), "=d" ((_the_context)->a7_msp) \
- : "0" ((_the_context)->sr), "1" ((_the_context)->a7_msp) ); \
- }
-
/* end of Context handler macros */
/*
@@ -700,6 +692,10 @@ void _CPU_Context_switch(
Context_Control *heir
);
+void _CPU_Context_Restart_self(
+ Context_Control *the_context
+);
+
/*
* _CPU_Context_save_fp
*