-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable RISC-V atomic compare and swap #57925
Conversation
This comment has been minimized.
This comment has been minimized.
From what I can see the LLVM submodule has not been updated in the past 6 weeks. It doesn’t seem like this should be landed before an LLVM update, but I would be fine with merging this if this PR updated the LLVM submodule as well... |
@bors r+ |
📌 Commit 607c543 has been approved by |
r? @nagisa You r+ it, you own it ;) |
Enable RISC-V atomic compare and swap Fixes rust-lang#56564
Enable RISC-V atomic compare and swap Fixes #56564
☀️ Test successful - checks-travis, status-appveyor |
…ures A pretty awful and very forced port of the cortex-m linked list allocator. The main issue is that the RiscV runtime doesn't seem to support atomic boolean swaps, which means the Mutex implementation won't work. Pulled in a Mutex implementation and lied to the system that the mutex is always available. This will get us through initial board bring-up but someone with real OS knowledge needs to fix this down the road....
Fixes #56564