Other libraries might use the default constructor attribute and expect pthreads
to be initialised. Currently, the priority for pthread-embedded library
constructor has the highest priority (101).
Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
Reviewed-by: Costin Lupu <costin.lupu@cs.pub.ro>
#include <string.h>
#include <uk/essentials.h>
+#include <uk/ctors_prio.h>
#include <uk/arch/time.h>
#include <uk/arch/atomic.h>
#include <uk/print.h>
*
***************************************************************************/
-int __constructor pthread_constructor(void)
+UK_CTOR_ATTR(UK_CTOR_PRIO_PTHREAD_EMBEDDED)
+int pthread_constructor(void)
{
uk_pr_debug("pthread-embedded constructor\n");
return pthread_init();