From df63fbd1ac1085d1a570c28a17d8425de32d7b78 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 4 Nov 2016 13:45:25 +0100 Subject: score: Add The aim of this file is to encapsulate CPU port implementation details. This helps to hide implementation details from which indirectly includes . --- cpukit/score/cpu/or1k/Makefile.am | 1 + cpukit/score/cpu/or1k/preinstall.am | 4 ++++ cpukit/score/cpu/or1k/rtems/score/cpuimpl.h | 30 +++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 cpukit/score/cpu/or1k/rtems/score/cpuimpl.h (limited to 'cpukit/score/cpu/or1k') diff --git a/cpukit/score/cpu/or1k/Makefile.am b/cpukit/score/cpu/or1k/Makefile.am index 89b603bb3b..c9f28595f8 100644 --- a/cpukit/score/cpu/or1k/Makefile.am +++ b/cpukit/score/cpu/or1k/Makefile.am @@ -11,6 +11,7 @@ include_rtems_scoredir = $(includedir)/rtems/score include_rtems_score_HEADERS = include_rtems_score_HEADERS += rtems/score/cpu.h +include_rtems_score_HEADERS += rtems/score/cpuimpl.h include_rtems_score_HEADERS += rtems/score/cpuatomic.h include_rtems_score_HEADERS += rtems/score/cpu_asm.h include_rtems_score_HEADERS += rtems/score/types.h diff --git a/cpukit/score/cpu/or1k/preinstall.am b/cpukit/score/cpu/or1k/preinstall.am index 6e15e20f6c..eae1e46d14 100644 --- a/cpukit/score/cpu/or1k/preinstall.am +++ b/cpukit/score/cpu/or1k/preinstall.am @@ -31,6 +31,10 @@ $(PROJECT_INCLUDE)/rtems/score/cpu.h: rtems/score/cpu.h $(PROJECT_INCLUDE)/rtems $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/cpu.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/cpu.h +$(PROJECT_INCLUDE)/rtems/score/cpuimpl.h: rtems/score/cpuimpl.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/cpuimpl.h +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/cpuimpl.h + $(PROJECT_INCLUDE)/rtems/score/cpuatomic.h: rtems/score/cpuatomic.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/cpuatomic.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/cpuatomic.h diff --git a/cpukit/score/cpu/or1k/rtems/score/cpuimpl.h b/cpukit/score/cpu/or1k/rtems/score/cpuimpl.h new file mode 100644 index 0000000000..6b8b601cb0 --- /dev/null +++ b/cpukit/score/cpu/or1k/rtems/score/cpuimpl.h @@ -0,0 +1,30 @@ +/** + * @file + * + * @brief CPU Port Implementation API + */ + +/* + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifndef _RTEMS_SCORE_CPUIMPL_H +#define _RTEMS_SCORE_CPUIMPL_H + +#include + +#ifndef ASM + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* ASM */ + +#endif /* _RTEMS_SCORE_CPUIMPL_H */ -- cgit v1.2.3