[bsp][hpmicro] add missing fence apis

- added missing fence apis

Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
This commit is contained in:
Fan YANG 2024-08-12 17:08:11 +08:00 committed by Rbb666
parent 6c085218a3
commit 0b1ba0f612
1 changed files with 12 additions and 0 deletions

View File

@ -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
*/