zephyriot / zep-jira14

0 stars 0 forks source link

nios2: implement asm atomic operations #167

Open nashif opened 8 years ago

nashif commented 8 years ago

Reported by Andrew Boie:

As a Zephyr user targeting Nios II, I would like to have assembly implementation of atomic operations to help optimize my app's performance.

Implement the extern functions declared in include/atomic.h using inline assembly. The implementation should go in arch/nios2/core.

See arch/x86/core/atomic.c for an example of this on x86.

Disable use of CONFIG_ATOMIC_OPERATIONS_C

(Imported from Jira ZEP-201)

nashif commented 8 years ago

by Andrew Boie:

It would be even better if the Nios compiler supported the relevant GCC builtins.

See https://gerrit.zephyrproject.org/r/#/c/3291/ and ZEP-557