Skip to content

Commit

Permalink
riscv: Add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 8, 2023
1 parent 210b491 commit c5751dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/imp/riscv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

// Atomic load/store implementation on RISC-V.
//
// This is for RISC-V targets without atomic CAS. (rustc doesn't provide atomics
// at all on such targets. https://github.com/rust-lang/rust/pull/114499)
//
// Also, optionally provides RMW implementation when force-amo is enabled.
//
// Refs:
// - RISC-V Instruction Set Manual Volume I: Unprivileged ISA
// https://riscv.org/wp-content/uploads/2019/12/riscv-spec-20191213.pdf
Expand Down

0 comments on commit c5751dc

Please sign in to comment.