PatchMixolydic / spinel

An operating system built to explore systems programming
MIT License
4 stars 1 forks source link

Freestanding stdatomic.h headers in GCC appear to be unsuitable #13

Closed PatchMixolydic closed 3 years ago

PatchMixolydic commented 4 years ago

spinlockMutex decompiles to contain xchg and then test

This function, which uses atomic_flag_test_and_set, uses xchg and test. Presumably, an atomic operation would be preferable to avoid races, like lock cmpxchg.

PatchMixolydic commented 3 years ago

Spinel was since rewritten in Rust, so this is no longer an issue.