diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-09-26 06:34:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-05 13:41:06 +0200 |
commit | 8776bb94197613a369b47b3adf4b2d4e0ba766ed (patch) | |
tree | 37f2177f56e8d758bc4433ea8f8d98851fa81a18 /cpukit/score/cpu/nios2 | |
parent | dev/sc16is752: Deal with a baud of zero (diff) | |
download | rtems-8776bb94197613a369b47b3adf4b2d4e0ba766ed.tar.bz2 |
score: Remove CPU_PROVIDES_IDLE_THREAD_BODY
Remove the CPU_PROVIDES_IDLE_THREAD_BODY option to avoid unnecessary
conditional compilation.
Close #3539.
Diffstat (limited to 'cpukit/score/cpu/nios2')
-rw-r--r-- | cpukit/score/cpu/nios2/Makefile.am | 1 | ||||
-rw-r--r-- | cpukit/score/cpu/nios2/include/rtems/score/cpu.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/score/cpu/nios2/Makefile.am b/cpukit/score/cpu/nios2/Makefile.am index a0ecab3345..4619db0b28 100644 --- a/cpukit/score/cpu/nios2/Makefile.am +++ b/cpukit/score/cpu/nios2/Makefile.am @@ -7,6 +7,7 @@ noinst_LIBRARIES = libscorecpu.a libscorecpu_a_SOURCES = libscorecpu_a_SOURCES += ../no_cpu/cpucounterfrequency.c libscorecpu_a_SOURCES += ../no_cpu/cpucounterread.c +libscorecpu_a_SOURCES += ../no_cpu/cpuidle.c libscorecpu_a_SOURCES += nios2-context-initialize.c libscorecpu_a_SOURCES += nios2-context-switch.S libscorecpu_a_SOURCES += nios2-context-validate.S diff --git a/cpukit/score/cpu/nios2/include/rtems/score/cpu.h b/cpukit/score/cpu/nios2/include/rtems/score/cpu.h index fa052842c8..c86b13bb73 100644 --- a/cpukit/score/cpu/nios2/include/rtems/score/cpu.h +++ b/cpukit/score/cpu/nios2/include/rtems/score/cpu.h @@ -51,8 +51,6 @@ extern "C" { #define CPU_ENABLE_ROBUST_THREAD_DISPATCH FALSE -#define CPU_PROVIDES_IDLE_THREAD_BODY FALSE - #define CPU_STACK_GROWS_UP FALSE /* FIXME: Is this the right value? */ @@ -316,6 +314,8 @@ void _CPU_ISR_install_vector( proc_ptr *old_handler ); +void *_CPU_Thread_Idle_body( uintptr_t ignored ); + void _CPU_Context_switch( Context_Control *run, Context_Control *heir ); void _CPU_Context_restore( |