Changeset fad3f79b in rtems


Ignore:
Timestamp:
Aug 31, 2018, 5:44:53 AM (9 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3aad9d9b
Parents:
7b1a711
git-author:
Sebastian Huber <sebastian.huber@…> (08/31/18 05:44:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/03/18 05:03:09)
Message:

bsps: BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN

Remove the BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN hack. The interrupt
stacks are now allocated by the linker.

Update #3459.

Files:
15 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/raspberrypi/start/bspgetworkarea.c

    r7b1a711 rfad3f79b  
    2626#include <bsp/bootcard.h>
    2727#include <bsp/vc.h>
    28 #ifdef BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN
    29   #include <rtems/config.h>
    30 #endif
    3128
    3229#if defined(HAS_UBOOT) && !defined(BSP_DISABLE_UBOOT_WORK_AREA_CONFIG)
     
    6663  #endif
    6764
    68   #ifdef BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN
    69     work_base += rtems_configuration_get_interrupt_stack_size();
    70   #endif
    71 
    7265  memset( &vc_entry, 0, sizeof(vc_entry) );
    7366  if (bcm2835_mailbox_get_vc_memory( &vc_entry ) >= 0) {
  • bsps/powerpc/gen83xx/start/bspstart.c

    r7b1a711 rfad3f79b  
    115115#endif
    116116  ppc_exc_initialize(
    117     (uintptr_t) bsp_section_work_begin,
     117    (uintptr_t) _Configuration_Interrupt_stack_area_begin,
    118118    rtems_configuration_get_interrupt_stack_size()
    119119  );
  • bsps/powerpc/mpc55xxevb/include/bsp.h

    r7b1a711 rfad3f79b  
    2525
    2626#include <bspopts.h>
    27 
    28 #define BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN
    2927
    3028#define BSP_FEATURE_IRQ_EXTENSION
  • bsps/powerpc/mpc55xxevb/start/bspgetworkarea.c

    r7b1a711 rfad3f79b  
    3838  };
    3939
    40   #ifdef BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN
    41     {
    42       uint32_t stack_size = rtems_configuration_get_interrupt_stack_size();
    43 
    44       areas [0].begin = (char *) areas [0].begin + stack_size;
    45       areas [0].size -= stack_size;
    46     }
    47   #endif
    48 
    4940  bsp_work_area_initialize_with_table(
    5041    areas,
  • bsps/powerpc/mpc55xxevb/start/bspstart.c

    r7b1a711 rfad3f79b  
    9191        /* Initialize exceptions */
    9292        ppc_exc_initialize_with_vector_base(
    93                 (uintptr_t) bsp_section_work_begin,
     93                (uintptr_t) _Configuration_Interrupt_stack_area_begin,
    9494                rtems_configuration_get_interrupt_stack_size(),
    9595                mpc55xx_exc_vector_base
  • bsps/powerpc/psim/start/bspstart.c

    r7b1a711 rfad3f79b  
    9292   */
    9393  ppc_exc_initialize_with_vector_base(
    94     (uintptr_t) bsp_section_work_begin,
     94    (uintptr_t) _Configuration_Interrupt_stack_area_begin,
    9595    rtems_configuration_get_interrupt_stack_size(),
    9696    (void *) 0xfff00000
  • bsps/powerpc/qoriq/start/bspstart.c

    r7b1a711 rfad3f79b  
    170170  initialize_frequency_parameters();
    171171
    172   qoriq_initialize_exceptions(bsp_section_work_begin);
     172  qoriq_initialize_exceptions(
     173    (uintptr_t) _Configuration_Interrupt_stack_area_begin
     174  );
    173175  bsp_interrupt_initialize();
    174176
  • bsps/powerpc/qoriq/start/mmu-config.c

    r7b1a711 rfad3f79b  
    345345        uintptr_t end = begin + we->size;
    346346
    347 #ifdef BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN
    348         begin += rtems_configuration_get_interrupt_stack_size();
    349 #endif
    350 
    351347        bsp_work_area_initialize_default((void *) begin, end - begin);
    352348}
  • bsps/powerpc/t32mppc/start/bspstart.c

    r7b1a711 rfad3f79b  
    4545  } while (0)
    4646
    47 static void t32mppc_initialize_exceptions(void *interrupt_stack_begin)
     47static void t32mppc_initialize_exceptions(void)
    4848{
    4949  uintptr_t addr;
    5050
    5151  ppc_exc_initialize_interrupt_stack(
    52     (uintptr_t) interrupt_stack_begin,
     52    (uintptr_t) _Configuration_Interrupt_stack_area_begin,
    5353    rtems_configuration_get_interrupt_stack_size()
    5454  );
     
    8787  get_ppc_cpu_type();
    8888  get_ppc_cpu_revision();
    89   t32mppc_initialize_exceptions(bsp_section_work_begin);
     89  t32mppc_initialize_exceptions();
    9090  bsp_interrupt_initialize();
    9191}
  • bsps/powerpc/virtex/include/bsp.h

    r7b1a711 rfad3f79b  
    6060#define BSP_FEATURE_IRQ_EXTENSION
    6161
    62 #define BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN
    63 
    6462/* Network Defines */
    6563#if 1 /* EB/doe changes */
  • bsps/powerpc/virtex/start/bspstart.c

    r7b1a711 rfad3f79b  
    9999   */
    100100  ppc_exc_initialize_with_vector_base(
    101     (uintptr_t) bsp_section_work_begin,
     101    (uintptr_t) _Configuration_Interrupt_stack_area_begin,
    102102    rtems_configuration_get_interrupt_stack_size(),
    103103    virtex_exc_vector_base
  • bsps/shared/start/bspgetworkarea-default.c

    r7b1a711 rfad3f79b  
    2020#include <bsp.h>
    2121#include <bsp/bootcard.h>
    22 #ifdef BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN
    23   #include <rtems/config.h>
    24 #endif
    2522
    2623#if defined(HAS_UBOOT) && !defined(BSP_DISABLE_UBOOT_WORK_AREA_CONFIG)
     
    5552  #endif
    5653
    57   #ifdef BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN
    58     work_base += rtems_configuration_get_interrupt_stack_size();
    59   #endif
    60 
    6154  bsp_work_area_initialize_default( (void *) work_base, ram_end - work_base );
    6255}
  • c/src/lib/libbsp/powerpc/gen83xx/configure.ac

    r7b1a711 rfad3f79b  
    1818RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([*],[1])
    1919RTEMS_BSPOPTS_HELP_INSTRUCTION_CACHE_ENABLED
    20 
    21 RTEMS_BSPOPTS_SET([BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN],[*],[1])
    22 RTEMS_BSPOPTS_HELP([BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN],[indicate that the interrupt stack is at the work area begin])
    2320
    2421RTEMS_BSPOPTS_SET([MPC83XX_BOARD_MPC8313ERDB],[mpc8313erdb],[1])
  • c/src/lib/libbsp/powerpc/psim/configure.ac

    r7b1a711 rfad3f79b  
    4343and a little memory is saved.])
    4444
    45 RTEMS_BSPOPTS_SET([BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN],[*],[1])
    46 RTEMS_BSPOPTS_HELP([BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN],[indicate that the interrupt stack is at the work area begin])
    47 
    4845AC_DEFINE(ppc603e, 1, [PowerPC model option])
    4946
  • c/src/lib/libbsp/powerpc/qoriq/configure.ac

    r7b1a711 rfad3f79b  
    100100RTEMS_BSPOPTS_HELP([QORIQ_UART_BRIDGE_1_ENABLE],[use 1 to enable UART 1 to Intercom bridge, otherwise use 0])
    101101
    102 RTEMS_BSPOPTS_SET([BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN],[*],[1])
    103 RTEMS_BSPOPTS_HELP([BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN],[indicate that the interrupt stack is at the work area begin])
    104 
    105102RTEMS_BSPOPTS_SET([QORIQ_INTERCOM_AREA_BEGIN],[*],[0x3000000])
    106103RTEMS_BSPOPTS_HELP([QORIQ_INTERCOM_AREA_BEGIN],[inter-processor communication area begin])
Note: See TracChangeset for help on using the changeset viewer.