Changeset 5616983 in rtems


Ignore:
Timestamp:
Sep 26, 2017, 5:10:40 AM (19 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e460cd00
Parents:
362e96ab
git-author:
Sebastian Huber <sebastian.huber@…> (09/26/17 05:10:40)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/27/17 08:59:09)
Message:

bsp/imx: Add nocache section

Update #3090.

Location:
c/src/lib/libbsp/arm/imx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/imx/make/custom/imx7.cfg

    r362e96ab r5616983  
    1212#   $(OBJCOPY) -O binary '$@' '$(basename $@).bin'
    1313#   gzip -f -9 '$(basename $@).bin'
    14 #   mkimage -A arm -O linux -T kernel -a 0x80004000 -e 0x80004000 -name '$(notdir $@)' -d '$(basename $@).bin.gz' '$(basename $@).img'
     14#   mkimage -A arm -O linux -T kernel -a 0x80200000 -e 0x80200000 -name '$(notdir $@)' -d '$(basename $@).bin.gz' '$(basename $@).img'
    1515#   $(default-bsp-post-link)
    1616# endef
  • c/src/lib/libbsp/arm/imx/startup/bspstart.c

    r362e96ab r5616983  
    1818#include <bsp/fdt.h>
    1919#include <bsp/irq-generic.h>
     20#include <bsp/linker-symbols.h>
    2021
    2122#include <libfdt.h>
     
    5859{
    5960  bsp_interrupt_initialize();
     61  rtems_cache_coherent_add_area(
     62    bsp_section_nocacheheap_begin,
     63    (uintptr_t) bsp_section_nocacheheap_size
     64  );
    6065}
  • c/src/lib/libbsp/arm/imx/startup/linkcmds.imx7

    r362e96ab r5616983  
    11MEMORY {
    22        RAM_MMU : ORIGIN = 0x80000000, LENGTH = 16k
    3         RAM : ORIGIN = 0x80004000, LENGTH = 512M - 16k
     3        NOCACHE : ORIGIN = 0x80100000, LENGTH = 1M
     4        RAM : ORIGIN = 0x80200000, LENGTH = 512M - 2M
    45}
    56
     
    1920REGION_ALIAS ("REGION_WORK", RAM);
    2021REGION_ALIAS ("REGION_STACK", RAM);
    21 REGION_ALIAS ("REGION_NOCACHE", RAM);
    22 REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM);
     22REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
     23REGION_ALIAS ("REGION_NOCACHE_LOAD", NOCACHE);
    2324
    2425bsp_processor_count = DEFINED (bsp_processor_count) ? bsp_processor_count : 2;
Note: See TracChangeset for help on using the changeset viewer.