diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-07-15 14:36:37 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-07-15 14:36:37 +0000 |
commit | df00777ccfb2b3584211940398ad6fc79a26f51c (patch) | |
tree | c785b2fada4914331066ef7e08caffb26ee419f2 /cpukit | |
parent | 2011-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-df00777ccfb2b3584211940398ad6fc79a26f51c.tar.bz2 |
2011-07-15 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* score/Makefile.am, score/preinstall.am,
score/include/rtems/score/isr.h, score/include/rtems/score/percpu.h:
Split isrlevel into its own file to avoid a circular dependancy in
smp code.
* score/include/rtems/score/isrlevel.h: New file.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 8 | ||||
-rw-r--r-- | cpukit/score/Makefile.am | 1 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/isr.h | 6 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/isrlevel.h | 43 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/percpu.h | 1 | ||||
-rw-r--r-- | cpukit/score/preinstall.am | 4 |
6 files changed, 57 insertions, 6 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 8f770a845a..9406009e1b 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,11 @@ +2011-07-15 Jennifer Averett <Jennifer.Averett@OARcorp.com> + + * score/Makefile.am, score/preinstall.am, + score/include/rtems/score/isr.h, score/include/rtems/score/percpu.h: + Split isrlevel into its own file to avoid a circular dependancy in + smp code. + * score/include/rtems/score/isrlevel.h: New file. + 2011-07-14 Gene Smith <gene.smith@siemens.com> PR 1381/networking diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am index 635b698290..7e4bbdc816 100644 --- a/cpukit/score/Makefile.am +++ b/cpukit/score/Makefile.am @@ -33,6 +33,7 @@ include_rtems_score_HEADERS += include/rtems/score/heap.h include_rtems_score_HEADERS += include/rtems/score/protectedheap.h include_rtems_score_HEADERS += include/rtems/score/interr.h include_rtems_score_HEADERS += include/rtems/score/isr.h +include_rtems_score_HEADERS += include/rtems/score/isrlevel.h include_rtems_score_HEADERS += include/rtems/score/object.h include_rtems_score_HEADERS += include/rtems/score/percpu.h include_rtems_score_HEADERS += include/rtems/score/priority.h diff --git a/cpukit/score/include/rtems/score/isr.h b/cpukit/score/include/rtems/score/isr.h index e75dae5ab0..4544f72b29 100644 --- a/cpukit/score/include/rtems/score/isr.h +++ b/cpukit/score/include/rtems/score/isr.h @@ -41,12 +41,6 @@ extern "C" { #endif /** - * The following type defines the control block used to manage - * the interrupt level portion of the status register. - */ -typedef uint32_t ISR_Level; - -/** * The following type defines the type used to manage the vectors. */ typedef uint32_t ISR_Vector_number; diff --git a/cpukit/score/include/rtems/score/isrlevel.h b/cpukit/score/include/rtems/score/isrlevel.h new file mode 100644 index 0000000000..2bb9e51c15 --- /dev/null +++ b/cpukit/score/include/rtems/score/isrlevel.h @@ -0,0 +1,43 @@ +/** + * @file rtems/score/isrlevel.h + * + * This include file defines the ISR Level type. It exists to + * simplify include dependencies. It is part of the ISR Handler. + */ + +/* + * COPYRIGHT (c) 1989-2011. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#ifndef _RTEMS_SCORE_ISR_LEVEL_h +#define _RTEMS_SCORE_ISR_LEVEL_h + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @addtogroup ScoreISR ISR Handler + */ +/**@{*/ + +/** + * The following type defines the control block used to manage + * the interrupt level portion of the status register. + */ +typedef uint32_t ISR_Level; + +/**@}*/ + +#ifdef __cplusplus +} +#endif +#endif + diff --git a/cpukit/score/include/rtems/score/percpu.h b/cpukit/score/include/rtems/score/percpu.h index aab396787e..cead5e13ae 100644 --- a/cpukit/score/include/rtems/score/percpu.h +++ b/cpukit/score/include/rtems/score/percpu.h @@ -24,6 +24,7 @@ #ifdef ASM #include <rtems/asm.h> #else + #include <rtems/score/isrlevel.h> #include <rtems/score/timestamp.h> #if defined(RTEMS_SMP) #include <rtems/score/smplock.h> diff --git a/cpukit/score/preinstall.am b/cpukit/score/preinstall.am index f3021184a8..884891f5c3 100644 --- a/cpukit/score/preinstall.am +++ b/cpukit/score/preinstall.am @@ -99,6 +99,10 @@ $(PROJECT_INCLUDE)/rtems/score/isr.h: include/rtems/score/isr.h $(PROJECT_INCLUD $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/isr.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/isr.h +$(PROJECT_INCLUDE)/rtems/score/isrlevel.h: include/rtems/score/isrlevel.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/isrlevel.h +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/isrlevel.h + $(PROJECT_INCLUDE)/rtems/score/object.h: include/rtems/score/object.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/object.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/object.h |