Altera_Forum
Honored Contributor
13 years agoBug in altera_avalon_uart_read
NOTE: This is not a question, but an information
************************************ The call to read for a /dev/uart returns a wrong value when non-blocking and no data available. This is due to a bug in ip\altera\sopc_builder_ip\altera_avalon_uart\HAL\src\altera_avalon_uart_read.c#241 Instead of return ~EWOULDBLOCK; it should be return -EWOULDBLOCK; otherwise the calling program will receive errno 12 (ENOMEM, "Not enough space") instead of the correct number, 11 (EAGAIN, "No more processes"). (I tried to enter a service request, but was unable to; please forward to the due department in Altera) Seen in Quartus 11.1 and Quartus 12; did not exist in Quartus 9.0sp2.