Function sbi_rt::nacl_sync_hfence

source ·
pub fn nacl_sync_hfence(entry_index: usize) -> SbiRet
Expand description

Synchronize HFENCEs in the nested acceleration shared memory.

This is an optional function that is only available if the SBI_NACL_FEAT_SYNC_HFENCE feature is available.

§Parameters

The parameter entry_index specifies the set of nested HFENCE entries to be synchronized.

If entry_index is all-ones bitwise, then all nested HFENCE entries are synchronized.

If entry_index < (3840 / XLEN) then only a single nested HFENCE entry specified by the entry_index parameter is synchronized

§Return value

The possible error codes returned in SbiRet.error are shown in the table below:

Error codeDescription
SbiRet::success()HFENCEs synchronized successfully.
SbiRet::not_supported()SBI_NACL_FEAT_SYNC_HFENCE feature is not available.
SbiRet::invalid_param()entry_index is not all-ones bitwise and entry_index >= (3840 / XLEN).
SbiRet::no_shmem()Nested acceleration shared memory not available.

This function is defined in RISC-V SBI Specification chapter 15.8.