Skip to content

Commit

Permalink
rt: small documentation fix on pmu_snapshot_set_shmem
Browse files Browse the repository at this point in the history
Signed-off-by: Zhouqi Jiang <[email protected]>
  • Loading branch information
luojia65 committed Oct 25, 2024
1 parent a32cfca commit 25418e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sbi-rt/src/pmu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ pub fn pmu_counter_fw_read_hi(counter_idx: usize) -> SbiRet {
/// | `SbiRet::invalid_param()` | The flags parameter is not zero or the `shmem` parameter is not 4096 bytes aligned.
/// | `SbiRet::invalid_address()` | The shared memory pointed to by the `shmem` parameter is not writable or does not satisfy other requirements of RISC-V SBI Specification chapter 3.2.
/// | `SbiRet::failed()` | The request failed for unspecified or unknown other reasons.
///
/// This function is defined in RISC-V SBI Specification chapter 11.13.
#[inline]
pub fn pmu_snapshot_set_shmem(shmem: SharedPtr<[u8; SIZE]>, flags: usize) -> SbiRet {
Expand Down

0 comments on commit 25418e0

Please sign in to comment.