openrisc: Add library functions