diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-19 16:39:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-19 16:39:05 +0000 |
commit | db0df7b6df2415f3f218f9a893ac2d30d7e0b04a (patch) | |
tree | 3e24d25c85f10c3ee6531e9f6504afaa2bd3a5af /cpukit/score/cpu/arm/rtems/score/cpu.h | |
parent | 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-db0df7b6df2415f3f218f9a893ac2d30d7e0b04a.tar.bz2 |
2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Mark _CPU_Context_restore() as noreturn so the
compiler will not generate code thinking it returns.
Diffstat (limited to 'cpukit/score/cpu/arm/rtems/score/cpu.h')
-rw-r--r-- | cpukit/score/cpu/arm/rtems/score/cpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h index cd81a1c5e5..084b41a603 100644 --- a/cpukit/score/cpu/arm/rtems/score/cpu.h +++ b/cpukit/score/cpu/arm/rtems/score/cpu.h @@ -361,7 +361,8 @@ void _CPU_Install_interrupt_stack( void ); void _CPU_Context_switch( Context_Control *run, Context_Control *heir ); -void _CPU_Context_restore( Context_Control *new_context ); +void _CPU_Context_restore( Context_Control *new_context ) + RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; void _CPU_Context_save_fp( Context_Control_fp **fp_context_ptr ); |