From 8776bb94197613a369b47b3adf4b2d4e0ba766ed Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 26 Sep 2018 06:34:54 +0200 Subject: score: Remove CPU_PROVIDES_IDLE_THREAD_BODY Remove the CPU_PROVIDES_IDLE_THREAD_BODY option to avoid unnecessary conditional compilation. Close #3539. --- cpukit/score/cpu/nios2/Makefile.am | 1 + cpukit/score/cpu/nios2/include/rtems/score/cpu.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'cpukit/score/cpu/nios2') 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( -- cgit v1.2.3