Ignore:
Timestamp:
May 31, 2013, 11:59:47 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
94c17af
Parents:
f2f211c5
git-author:
Sebastian Huber <sebastian.huber@…> (05/31/13 11:59:47)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/31/13 13:20:33)
Message:

bsps/arm: Add SMP support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/realview-pbx-a9/startup/bspstarthooks.c

    rf2f211c5 rdb42c079  
    1616#include <bsp/start.h>
    1717#include <bsp/arm-cp15-start.h>
     18#include <bsp/arm-a9mpcore-start.h>
    1819#include <bsp/linker-symbols.h>
    1920
    20 BSP_START_TEXT_SECTION void bsp_start_hook_0(void)
    21 {
    22   /* Do nothing */
    23 }
     21#ifdef RTEMS_SMP
     22  #define MMU_DATA_READ_WRITE ARMV7_MMU_DATA_READ_WRITE_SHAREABLE
     23#else
     24  #define MMU_DATA_READ_WRITE ARMV7_MMU_DATA_READ_WRITE_CACHED
     25#endif
    2426
    2527BSP_START_DATA_SECTION static const arm_cp15_start_section_config
     
    3234    .begin = (uint32_t) bsp_section_fast_data_begin,
    3335    .end = (uint32_t) bsp_section_fast_data_end,
    34     .flags = ARMV7_MMU_DATA_READ_WRITE_CACHED
     36    .flags = MMU_DATA_READ_WRITE
    3537  }, {
    3638    .begin = (uint32_t) bsp_section_start_begin,
     
    4042    .begin = (uint32_t) bsp_section_vector_begin,
    4143    .end = (uint32_t) bsp_section_vector_end,
    42     .flags = ARMV7_MMU_DATA_READ_WRITE_CACHED
     44    .flags = MMU_DATA_READ_WRITE
    4345  }, {
    4446    .begin = (uint32_t) bsp_section_text_begin,
     
    5254    .begin = (uint32_t) bsp_section_data_begin,
    5355    .end = (uint32_t) bsp_section_data_end,
    54     .flags = ARMV7_MMU_DATA_READ_WRITE_CACHED
     56    .flags = MMU_DATA_READ_WRITE
    5557  }, {
    5658    .begin = (uint32_t) bsp_section_bss_begin,
    5759    .end = (uint32_t) bsp_section_bss_end,
    58     .flags = ARMV7_MMU_DATA_READ_WRITE_CACHED
     60    .flags = MMU_DATA_READ_WRITE
    5961  }, {
    6062    .begin = (uint32_t) bsp_section_work_begin,
    6163    .end = (uint32_t) bsp_section_work_end,
    62     .flags = ARMV7_MMU_DATA_READ_WRITE_CACHED
     64    .flags = MMU_DATA_READ_WRITE
    6365  }, {
    6466    .begin = (uint32_t) bsp_section_stack_begin,
    6567    .end = (uint32_t) bsp_section_stack_end,
    66     .flags = ARMV7_MMU_DATA_READ_WRITE_CACHED
     68    .flags = MMU_DATA_READ_WRITE
    6769  }, {
    6870    .begin = 0x10000000U,
     
    9294}
    9395
     96BSP_START_TEXT_SECTION void bsp_start_hook_0(void)
     97{
     98  arm_a9mpcore_start_hook_0();
     99}
     100
    94101BSP_START_TEXT_SECTION void bsp_start_hook_1(void)
    95102{
Note: See TracChangeset for help on using the changeset viewer.