Changeset bc820946 in rtems


Ignore:
Timestamp:
Oct 8, 2015, 11:29:56 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
cf8e033
Parents:
707ecbe
git-author:
Sebastian Huber <sebastian.huber@…> (10/08/15 11:29:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/08/15 11:34:40)
Message:

bsps: Add .nocacheheap section

This avoids consumption of a loadable address space for the nocache
heap.

Location:
c/src/lib/libbsp
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspstart.c

    r707ecbe rbc820946  
    11/*
    2  * Copyright (c) 2013-2014 embedded brains GmbH.  All rights reserved.
     2 * Copyright (c) 2013-2015 embedded brains GmbH.  All rights reserved.
    33 *
    44 *  embedded brains GmbH
     
    2323  bsp_interrupt_initialize();
    2424  rtems_cache_coherent_add_area(
    25     bsp_nocache_heap_begin,
    26     (uintptr_t) bsp_nocache_heap_size
     25    bsp_section_nocacheheap_begin,
     26    (uintptr_t) bsp_section_nocacheheap_size
    2727  );
    2828}
  • c/src/lib/libbsp/arm/shared/include/linker-symbols.h

    r707ecbe rbc820946  
    88
    99/*
    10  * Copyright (c) 2008-2014 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2008-2015 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    120120LINKER_SYMBOL(bsp_section_nocache_load_end)
    121121
     122LINKER_SYMBOL(bsp_section_nocacheheap_begin)
     123LINKER_SYMBOL(bsp_section_nocacheheap_end)
     124LINKER_SYMBOL(bsp_section_nocacheheap_size)
     125
    122126LINKER_SYMBOL(bsp_vector_table_begin)
    123127LINKER_SYMBOL(bsp_vector_table_end)
     
    130134LINKER_SYMBOL(bsp_translation_table_base)
    131135LINKER_SYMBOL(bsp_translation_table_end)
    132 
    133 LINKER_SYMBOL(bsp_nocache_heap_begin)
    134 LINKER_SYMBOL(bsp_nocache_heap_end)
    135 LINKER_SYMBOL(bsp_nocache_heap_size)
    136136
    137137#define BSP_FAST_TEXT_SECTION __attribute__((section(".bsp_fast_text")))
  • c/src/lib/libbsp/arm/shared/startup/linkcmds.base

    r707ecbe rbc820946  
    88
    99/*
    10  * Copyright (c) 2008-2014 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2008-2015 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
    13  *  Obere Lagerstr. 30
     13 *  Dornierstr. 4
    1414 *  82178 Puchheim
    1515 *  Germany
     
    401401                bsp_section_nocache_begin = .;
    402402                *(SORT(.bsp_nocache*))
    403                 bsp_nocache_heap_begin = .;
    404                 . += ORIGIN (REGION_NOCACHE) + LENGTH (REGION_NOCACHE) - ABSOLUTE (.);
    405                 bsp_nocache_heap_end = .;
    406403                bsp_section_nocache_end = .;
    407404        } > REGION_NOCACHE AT > REGION_NOCACHE_LOAD
    408         bsp_nocache_heap_size = bsp_nocache_heap_end - bsp_nocache_heap_begin;
    409405        bsp_section_nocache_size = bsp_section_nocache_end - bsp_section_nocache_begin;
    410406        bsp_section_nocache_load_begin = LOADADDR (.nocache);
    411407        bsp_section_nocache_load_end = bsp_section_nocache_load_begin + bsp_section_nocache_size;
     408
     409        .nocacheheap (NOLOAD) : ALIGN_WITH_INPUT {
     410                bsp_section_nocacheheap_begin = .;
     411                . += ORIGIN (REGION_NOCACHE) + LENGTH (REGION_NOCACHE) - ABSOLUTE (.);
     412                bsp_section_nocacheheap_end = .;
     413        } > REGION_NOCACHE AT > REGION_NOCACHE
     414        bsp_section_nocacheheap_size = bsp_section_nocacheheap_end - bsp_section_nocacheheap_begin;
    412415
    413416        /* FIXME */
  • c/src/lib/libbsp/arm/xilinx-zynq/startup/bspstart.c

    r707ecbe rbc820946  
    11/*
    2  * Copyright (c) 2013-2014 embedded brains GmbH.  All rights reserved.
     2 * Copyright (c) 2013-2015 embedded brains GmbH.  All rights reserved.
    33 *
    44 *  embedded brains GmbH
     
    2929  bsp_interrupt_initialize();
    3030  rtems_cache_coherent_add_area(
    31     bsp_nocache_heap_begin,
    32     (uintptr_t) bsp_nocache_heap_size
     31    bsp_section_nocacheheap_begin,
     32    (uintptr_t) bsp_section_nocacheheap_size
    3333  );
    3434}
  • c/src/lib/libbsp/powerpc/shared/include/linker-symbols.h

    r707ecbe rbc820946  
    88
    99/*
    10  * Copyright (c) 2010-2013 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2010-2015 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
    13  *  Donrierstr. 4
     13 *  Dornierstr. 4
    1414 *  82178 Puchheim
    1515 *  Germany
     
    100100LINKER_SYMBOL(bsp_section_nocache_load_end)
    101101
     102LINKER_SYMBOL(bsp_section_nocacheheap_begin)
     103LINKER_SYMBOL(bsp_section_nocacheheap_end)
     104LINKER_SYMBOL(bsp_section_nocacheheap_size)
     105
    102106LINKER_SYMBOL(bsp_section_nvram_begin)
    103107LINKER_SYMBOL(bsp_section_nvram_end)
  • c/src/lib/libbsp/powerpc/shared/startup/linkcmds.base

    r707ecbe rbc820946  
    88
    99/*
    10  * Copyright (c) 2011-2013 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2011-2015 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
    13  *  Obere Lagerstr. 30
     13 *  Dornierstr. 4
    1414 *  82178 Puchheim
    1515 *  Germany
     
    343343        bsp_section_nocache_load_end = bsp_section_nocache_load_begin + bsp_section_nocache_size;
    344344
     345        .nocacheheap (NOLOAD) : ALIGN_WITH_INPUT {
     346                bsp_section_nocacheheap_begin = .;
     347                . += ORIGIN (REGION_NOCACHE) + LENGTH (REGION_NOCACHE) - ABSOLUTE (.);
     348                bsp_section_nocacheheap_end = .;
     349        } > REGION_NOCACHE AT > REGION_NOCACHE
     350        bsp_section_nocacheheap_size = bsp_section_nocacheheap_end - bsp_section_nocacheheap_begin;
     351
    345352        .nvram (NOLOAD) : ALIGN_WITH_INPUT {
    346353                bsp_section_nvram_begin = .;
    347354                *(SORT(.bsp_nvram*))
    348355                bsp_section_nvram_end = .;
    349         } > REGION_NVRAM
     356        } > REGION_NVRAM AT > REGION_NVRAM
    350357        bsp_section_nvram_size = bsp_section_nvram_end - bsp_section_nvram_begin;
    351358
Note: See TracChangeset for help on using the changeset viewer.