diff --git a/bsp/hpmicro/libraries/hpm_sdk/arch/riscv/riscv_core.h b/bsp/hpmicro/libraries/hpm_sdk/arch/riscv/riscv_core.h index 4f95f4db9e..8cdaf95094 100644 --- a/bsp/hpmicro/libraries/hpm_sdk/arch/riscv/riscv_core.h +++ b/bsp/hpmicro/libraries/hpm_sdk/arch/riscv/riscv_core.h @@ -87,6 +87,18 @@ extern "C" { */ #define fencei() __asm volatile("fence.i") +/** + * @brief execute fence rw + * + */ +#define fencerw() __asm volatile("fence rw, rw") + +/** + * @brief execute fence iorw + * + */ +#define fenceiorw() __asm volatile("fence iorw, iorw") + /** * @brief enable fpu */