Changeset cf8e033 in rtems


Ignore:
Timestamp:
10/08/15 11:35:27 (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
27390a29
Parents:
bc820946
Message:

bsp/qoriq: Add nocache heap

Location:
c/src/lib/libbsp/powerpc/qoriq/startup
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qoriq/startup/bspstart.c

    rbc820946 rcf8e033  
    142142  bsp_interrupt_initialize();
    143143
     144  rtems_cache_coherent_add_area(
     145    bsp_section_nocacheheap_begin,
     146    (uintptr_t) bsp_section_nocacheheap_size
     147  );
     148
    144149  /* Disable boot page translation */
    145150#if QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
  • c/src/lib/libbsp/powerpc/qoriq/startup/linkcmds.qoriq_t2080rdb

    rbc820946 rcf8e033  
    66
    77MEMORY {
    8         LOW : ORIGIN = 0x4000, LENGTH = 16M - 16k
    9         HIGH : ORIGIN = 0x1000000, LENGTH = 2048M - 16M
    10         EMPTY : ORIGIN = 0x0, LENGTH = 0
     8        LOW     : ORIGIN = 0x00004000, LENGTH = 16M - 16k
     9        NOCACHE : ORIGIN = 0x01000000, LENGTH = 16M
     10        HIGH    : ORIGIN = 0x02000000, LENGTH = 2048M - 32M
     11        EMPTY   : ORIGIN = 0x00000000, LENGTH = 0
    1112}
    1213
     
    2627REGION_ALIAS ("REGION_WORK", HIGH);
    2728REGION_ALIAS ("REGION_STACK", HIGH);
    28 REGION_ALIAS ("REGION_NOCACHE", EMPTY);
    29 REGION_ALIAS ("REGION_NOCACHE_LOAD", EMPTY);
     29REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
     30REGION_ALIAS ("REGION_NOCACHE_LOAD", LOW);
    3031REGION_ALIAS ("REGION_NVRAM", EMPTY);
    3132
  • c/src/lib/libbsp/powerpc/qoriq/startup/mmu-config.c

    rbc820946 rcf8e033  
    6464}
    6565
     66#define ENTRY_IO(b, s) { \
     67        .begin = (uint32_t) b, \
     68        .size = (uint32_t) s, \
     69        .mas2 = FSL_EIS_MAS2_I | FSL_EIS_MAS2_G, \
     70        .mas3 = FSL_EIS_MAS3_SR | FSL_EIS_MAS3_SW \
     71}
     72
    6673#define ENTRY_DEV(b, s) { \
    6774        .begin = (uint32_t) b, \
     
    104111        ENTRY_RW(bsp_section_work_begin, bsp_section_work_size),
    105112        ENTRY_RW(bsp_section_stack_begin, bsp_section_stack_size),
     113        ENTRY_IO(bsp_section_nocache_begin, bsp_section_nocache_size),
     114        ENTRY_IO(bsp_section_nocacheheap_begin, bsp_section_nocacheheap_size),
    106115#if QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
    107116        /* BMan Portals */
Note: See TracChangeset for help on using the changeset viewer.