...
This commit is contained in:
parent
92e8072fdf
commit
58072a85a4
1 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue