[rtems commit] bsp/altera-cyclone-v: Move mbufs and network clusters to uncached RAM

Sebastian Huber sebh at rtems.org
Wed Apr 30 12:46:06 UTC 2014


Module:    rtems
Branch:    master
Commit:    bc9a71ba6a19c5d3cde1cdb7fdb792dcdc107310
Changeset: http://git.rtems.org/rtems/commit/?id=bc9a71ba6a19c5d3cde1cdb7fdb792dcdc107310

Author:    Ralf Kirchner <ralf.kirchner at embedded-brains.de>
Date:      Wed Apr 30 10:06:11 2014 +0200

bsp/altera-cyclone-v: Move mbufs and network clusters to uncached RAM

---

 .../libbsp/arm/altera-cyclone-v/startup/bspstart.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspstart.c b/c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspstart.c
index 8722bb8..f7ad9e9 100644
--- a/c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspstart.c
+++ b/c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspstart.c
@@ -31,6 +31,18 @@
 
 #define BSPSTART_MAX_CORES_PER_CONTROLLER 2
 
+#ifdef RTEMS_NETWORKING
+/* FIXME: This is a workaround for the broken cache manager support */
+
+#include <rtems/rtems_bsdnet.h>
+
+void* rtems_bsdnet_malloc_mbuf(size_t size, int type)
+{
+  (void)type;
+  return altera_cyclone_v_nocache_malloc(size);
+}
+#endif
+
 static void bsp_start_secondary_cores( void )
 {
 #ifdef RTEMS_SMP




More information about the vc mailing list