diff options
author | Ralf Kirchner <ralf.kirchner@embedded-brains.de> | 2014-04-30 10:06:11 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-30 14:53:14 +0200 |
commit | bc9a71ba6a19c5d3cde1cdb7fdb792dcdc107310 (patch) | |
tree | 23291eb2074963779428b59e0b3f3f259979ef2d | |
parent | bsp/altera-cyclone-v: Increase size of nocache region and nocache heap (diff) | |
download | rtems-bc9a71ba6a19c5d3cde1cdb7fdb792dcdc107310.tar.bz2 |
bsp/altera-cyclone-v: Move mbufs and network clusters to uncached RAM
-rw-r--r-- | c/src/lib/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 8722bb8838..f7ad9e9ebb 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 |