Skip to content

Does SpinMutex from spin crate not work on aarch64? #132

Discussion options

You must be logged in to vote

Spin lock uses atomics under the hood, but atomics work on ARM only if you have MMU configured and enabled. MMU is introduced later than the NullLock, so I assume that is the case (it was in my case).

The forever spinning isn't really spinning - CPU raises an exception, but you must have not configured the handler yet so it raises an exception from an exception handler, freezing forever (cause handlers are introduced even after MMU).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by andre-richter
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants