bsp/beagle: Add nocache section

Closes #3780
This commit is contained in:
Vijay Kumar Banerjee
2019-08-03 02:27:01 +05:30
committed by Christian Mauderer
parent cc91fae43a
commit 886956afd2
2 changed files with 9 additions and 3 deletions

View File

@@ -16,6 +16,7 @@
#include <bsp/bootcard.h>
#include <bsp/irq-generic.h>
#include <bsp/fdt.h>
#include <bsp/linker-symbols.h>
#include "bspdebug.h"
@@ -30,6 +31,10 @@ void bsp_start(void)
bsp_interrupt_initialize();
printk("\nRTEMS Beagleboard: %s\n", type);
printk(" ARM Debug: 0x%08x\n", (intptr_t) bbb_arm_debug_registers());
rtems_cache_coherent_add_area(
bsp_section_nocacheheap_begin,
(uintptr_t) bsp_section_nocacheheap_size
);
}
uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)

View File

@@ -11,7 +11,8 @@ MEMORY {
* have either 256M or 512M memory. We just
* use 256M for all.
*/
RAM : ORIGIN = 0x80000000, LENGTH = 256M - 4M
RAM : ORIGIN = 0x80000000, LENGTH = 256M - 16M - 4M
NOCACHE : ORIGIN = 0x80000000 + 256M - 16M - 4M, LENGTH = 16M
RAM_MMU : ORIGIN = 0x80000000 + 256M - 4M, LENGTH = 16k
}
@@ -30,8 +31,8 @@ REGION_ALIAS ("REGION_FAST_DATA_LOAD", RAM);
REGION_ALIAS ("REGION_BSS", RAM);
REGION_ALIAS ("REGION_WORK", RAM);
REGION_ALIAS ("REGION_STACK", RAM);
REGION_ALIAS ("REGION_NOCACHE", RAM);
REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM);
REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
REGION_ALIAS ("REGION_NOCACHE_LOAD", NOCACHE);
bsp_stack_abt_size = DEFINED (bsp_stack_abt_size) ? bsp_stack_abt_size : 1024;