eco32: add syscall to perform atomic operation

As the comment in the code states, lifted from openrisc.

Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>