Altera_Forum
Honored Contributor
20 years agoSemaphore support
Hi,
I'm currently trying to initialize a semaphore by making a call to sem_init(), but instead of returning a non-zero value and printing a error condition, Nios II reboots.struct sem_t *msem
if (sem_init(msem, 0, 0) != 0)
printf("Semaphore not initialized\n"); Is there something specific that needs to be configured in the kernel that provides support for semaphores? Any feedback would be appreciated.