Jan Kiszka wrote:
> @@ -234,12 +239,65 @@ int xnheap_init(xnheap_t *heap,
>
> appendq(&heap->extents, &extent->link);
>
> + vsnprintf(heap->name, sizeof(heap->name), name, args);
> +
> + spin_lock(&heapq_lock);
> + appendq(&heapq, &heap->stat_link);
> + spin_unlock(&heapq_lock);
You can not use a Linux spinlock in xnheap_init and xnheap_destroy:
- this breaks the build for the simulator;
- callers of xnheap_init and xnheap_destroy are not guaranteed to run on
the root domain.
--
Gilles.
_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core