[PATCH 4/7] bsp/altera-cyclone-v: Move mbufs and network clusters to uncached RAM
Ralf Kirchner
ralf.kirchner at embedded-brains.de
Wed Apr 30 08:06:11 UTC 2014
---
c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspstart.c | 10 ++++++++++
1 Datei geändert, 10 Zeilen hinzugefügt(+)
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..955f016 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
@@ -20,7 +20,10 @@
#include <bsp/linker-symbols.h>
#include <bsp/start.h>
#include <bsp/nocache-heap.h>
+#include <rtems.h>
#include <rtems/config.h>
+#include <rtems/rtems_bsdnet.h>
+#include <bsp/nocache-heap.h>
#include "socal/alt_rstmgr.h"
#include "socal/alt_sysmgr.h"
#include "socal/hps.h"
@@ -31,6 +34,13 @@
#define BSPSTART_MAX_CORES_PER_CONTROLLER 2
+
+void* rtems_bsdnet_malloc_mbuf(size_t size, int type)
+{
+ (void)type;
+ return altera_cyclone_v_nocache_malloc(size);
+}
+
static void bsp_start_secondary_cores( void )
{
#ifdef RTEMS_SMP
--
1.7.10.4
More information about the devel
mailing list