Changeset ff081aee in rtems for cpukit


Ignore:
Timestamp:
Nov 6, 2018, 3:58:02 PM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
4fea054c
Parents:
e9f15be
git-author:
Sebastian Huber <sebastian.huber@…> (11/06/18 15:58:02)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/08/18 07:09:20)
Message:

score: Rename interrupt stack symbols

Rename

  • _Configuration_Interrupt_stack_area_begin in _ISR_Stack_area_begin,
  • _Configuration_Interrupt_stack_area_end in _ISR_Stack_area_end, and
  • _Configuration_Interrupt_stack_size in _ISR_Stack_size.

Move definitions to <rtems/score/isr.h>. The new names are considerable
shorter and in the right namespace.

Update #3459.

Location:
cpukit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/confdefs.h

    re9f15be rff081aee  
    11771177#ifdef CONFIGURE_INIT
    11781178  RTEMS_DEFINE_GLOBAL_SYMBOL(
    1179     _Configuration_Interrupt_stack_size,
     1179    _ISR_Stack_size,
    11801180    CONFIGURE_INTERRUPT_STACK_SIZE
    11811181  );
    11821182
    1183   char _Configuration_Interrupt_stack_area_begin[
     1183  char _ISR_Stack_area_begin[
    11841184    _CONFIGURE_MAXIMUM_PROCESSORS * CONFIGURE_INTERRUPT_STACK_SIZE
    11851185  ] RTEMS_ALIGNED( CPU_INTERRUPT_STACK_ALIGNMENT )
    11861186  RTEMS_SECTION( ".rtemsstack.interrupt.begin" );
    11871187
    1188   const char _Configuration_Interrupt_stack_area_end[ 0 ]
     1188  const char _ISR_Stack_area_end[ 0 ]
    11891189    RTEMS_SECTION( ".rtemsstack.interrupt.end" ) = { };
    11901190#endif
  • cpukit/include/rtems/config.h

    re9f15be rff081aee  
    3333
    3434#include <rtems/score/object.h>
     35#include <rtems/score/isr.h>
    3536#include <rtems/score/watchdog.h>
    3637#include <rtems/rtems/config.h>
     
    295296        (Configuration.idle_task_stack_size)
    296297
    297 /**
    298  * @brief Global symbol with a value equal to the configure interrupt stack size.
    299  *
    300  * This global symbol is defined by the application configuration option
    301  * CONFIGURE_INIT_TASK_STACK_SIZE via <rtems/confdefs.h>.
    302  */
    303 RTEMS_DECLARE_GLOBAL_SYMBOL( _Configuration_Interrupt_stack_size );
    304 
    305 /**
    306  * @brief The interrupt stack area begin.
    307  *
    308  * The interrupt stack area is defined by the application configuration via
    309  * <rtems/confdefs.h>.  The size of the area depends on
    310  * CONFIGURE_INIT_TASK_STACK_SIZE and CONFIGURE_MAXIMUM_PROCESSORS.
    311  */
    312 extern char _Configuration_Interrupt_stack_area_begin[];
    313 
    314 /**
    315  * @brief The interrupt stack area end.
    316  *
    317  * The interrupt stack area is defined by the application configuration via
    318  * <rtems/confdefs.h>.  The size of the area depends on
    319  * CONFIGURE_INIT_TASK_STACK_SIZE and CONFIGURE_MAXIMUM_PROCESSORS.
    320  */
    321 extern const char _Configuration_Interrupt_stack_area_end[];
    322 
    323298#define rtems_configuration_get_interrupt_stack_size() \
    324         ((size_t) _Configuration_Interrupt_stack_size)
     299        ((size_t) _ISR_Stack_size)
    325300
    326301#define rtems_configuration_get_stack_allocate_init_hook() \
  • cpukit/include/rtems/score/isr.h

    re9f15be rff081aee  
    7878
    7979/**
     80 * @brief Global symbol with a value equal to the configure interrupt stack size.
     81 *
     82 * This global symbol is defined by the application configuration option
     83 * CONFIGURE_INIT_TASK_STACK_SIZE via <rtems/confdefs.h>.
     84 */
     85RTEMS_DECLARE_GLOBAL_SYMBOL( _ISR_Stack_size );
     86
     87/**
     88 * @brief The interrupt stack area begin.
     89 *
     90 * The interrupt stack area is defined by the application configuration via
     91 * <rtems/confdefs.h>.  The size of the area depends on
     92 * CONFIGURE_INIT_TASK_STACK_SIZE and CONFIGURE_MAXIMUM_PROCESSORS.
     93 */
     94extern char _ISR_Stack_area_begin[];
     95
     96/**
     97 * @brief The interrupt stack area end.
     98 *
     99 * The interrupt stack area is defined by the application configuration via
     100 * <rtems/confdefs.h>.  The size of the area depends on
     101 * CONFIGURE_INIT_TASK_STACK_SIZE and CONFIGURE_MAXIMUM_PROCESSORS.
     102 */
     103extern const char _ISR_Stack_area_end[];
     104
     105/**
    80106 *  @brief Initialize the ISR handler.
    81107 *
  • cpukit/libmisc/stackchk/check.c

    re9f15be rff081aee  
    503503
    504504  stack.size = rtems_configuration_get_interrupt_stack_size();
    505   stack.area = _Configuration_Interrupt_stack_area_begin;
     505  stack.area = _ISR_Stack_area_begin;
    506506  cpu_max = rtems_configuration_get_maximum_processors();
    507507
  • cpukit/score/cpu/m68k/cpu.c

    re9f15be rff081aee  
    6363{
    6464#if ( M68K_HAS_SEPARATE_STACKS == 1 )
    65   uintptr_t isp = (uintptr_t) _Configuration_Interrupt_stack_area_end;
     65  uintptr_t isp = (uintptr_t) _ISR_Stack_area_end;
    6666
    6767  __asm__ volatile ( "movec %0,%%isp" : "=r" (isp) : "0" (isp) );
  • cpukit/score/src/isr.c

    re9f15be rff081aee  
    4949  stack_size = rtems_configuration_get_interrupt_stack_size();
    5050  cpu_max = rtems_configuration_get_maximum_processors();
    51   stack_low = _Configuration_Interrupt_stack_area_begin;
     51  stack_low = _ISR_Stack_area_begin;
    5252
    5353  for ( cpu_index = 0 ; cpu_index < cpu_max; ++cpu_index ) {
Note: See TracChangeset for help on using the changeset viewer.