Commit 73af780e authored by jdelange's avatar jdelange
Browse files

* po_hi_gqueue.c

   - Avoid segfaults when system have queues with a size
     superior to 1.



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@2728 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 998c4414
......@@ -282,9 +282,10 @@ rtems_id __po_hi_gqueues_barriers[__PO_HI_NB_TASKS];
tmp = (__po_hi_request_t*) &__po_hi_gqueues[id][port];
size = __po_hi_gqueues_woffsets[id][port] + __po_hi_gqueues_first[id][port];
tmp = tmp + size * (sizeof (*request));
tmp = tmp + size;
memcpy (tmp , request, sizeof (__po_hi_request_t));
__po_hi_gqueues_woffsets[id][port] = (__po_hi_gqueues_woffsets[id][port] + 1 ) % __po_hi_gqueues_sizes[id][port];
__po_hi_gqueues_used_size[id][port]++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment