diff --git a/drivers/net/mmnif.c b/drivers/net/mmnif.c index 48e3663c..4e128b51 100644 --- a/drivers/net/mmnif.c +++ b/drivers/net/mmnif.c @@ -472,7 +472,7 @@ __inline int mmnif_worker_schedule() * * Note: under windows this is kernel space so we take arbitrary 0x41000000 here */ -__inline void* mmnif_shmalloc() +__inline void* mmnif_shmalloc(int size) { /* Right now every core has the same buffer for every incoming packet * this will be removed and a buffer for each Core will be implemented @@ -491,7 +491,7 @@ __inline void* mmnif_shmalloc() /* We choose a arbitrary address first * until i know how to properly allocate shared memory */ - RCCE_shmalloc_init(0x80000000,2*8192); + RCCE_shmalloc_init(0x80000000,48*8192); mpb_start_address = RCCE_shmalloc(mpb_size*MMNIF_CORES); //mpb_start_address = 0x8000000+ mpb_size * (own_ip_address - router_ip_address); //SHMalloc(&mpb_start_address); @@ -833,7 +833,7 @@ err_t mmnif_init(struct netif* netif) /* Alloc and clear shared memory for rx_buff */ - mmnif->rx_buff = mmnif_shmalloc((sizeof(mm_rx_buffer_t) + MMNIF_RX_QUEUELEN * MMNIF_RX_BUFFERLEN) * (MMNIF_CORES-1)); + mmnif->rx_buff = mmnif_shmalloc(); if (!(mmnif->rx_buff)) { DEBUGPRINTF("mmnif init(): allocating shared memory failed\n");