[PATCH 07/12] bsp/altera-cyclone-v: Reduce size of nocache heap

Ralf Kirchner ralf.kirchner at embedded-brains.de
Tue May 27 14:46:52 UTC 2014


Network mbufs and clusters now are cached. Thus the nocache heap can get reduced to 1 MByte.
---
 .../libbsp/arm/altera-cyclone-v/startup/linkcmds.altcycv_devkit    |    4 ++--
 c/src/lib/libbsp/arm/altera-cyclone-v/startup/nocache-heap.c       |    2 +-
 2 Dateien geändert, 3 Zeilen hinzugefügt(+), 3 Zeilen entfernt(-)

diff --git a/c/src/lib/libbsp/arm/altera-cyclone-v/startup/linkcmds.altcycv_devkit b/c/src/lib/libbsp/arm/altera-cyclone-v/startup/linkcmds.altcycv_devkit
index 17ebed8..60f99a0 100644
--- a/c/src/lib/libbsp/arm/altera-cyclone-v/startup/linkcmds.altcycv_devkit
+++ b/c/src/lib/libbsp/arm/altera-cyclone-v/startup/linkcmds.altcycv_devkit
@@ -1,7 +1,7 @@
 MEMORY {
    RAM_MMU : ORIGIN = 0x00100000, LENGTH = 16k
-   NOCACHE : ORIGIN = 0x00200000, LENGTH = 3M
-   RAM     : ORIGIN = 0x00500000, LENGTH = 1024M - 1M - 1M - 3M
+   NOCACHE : ORIGIN = 0x00200000, LENGTH = 1M
+   RAM     : ORIGIN = 0x00300000, LENGTH = 1024M - 1M - 1M - 1M
 }
 
 SECTIONS {
diff --git a/c/src/lib/libbsp/arm/altera-cyclone-v/startup/nocache-heap.c b/c/src/lib/libbsp/arm/altera-cyclone-v/startup/nocache-heap.c
index 29e9176..0f01989 100644
--- a/c/src/lib/libbsp/arm/altera-cyclone-v/startup/nocache-heap.c
+++ b/c/src/lib/libbsp/arm/altera-cyclone-v/startup/nocache-heap.c
@@ -27,7 +27,7 @@
 /** @brief Uncached RAM pool
  *
  * Allocate the whole bsp_nocache for the nocache heap */
-static char nocache_pool[3 * 1024
+static char nocache_pool[1024
                          * 1024] __attribute__( ( section( ".bsp_nocache" ) ) );
 
 /** @brief Nocache heap
-- 
1.7.10.4




More information about the devel mailing list