mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
harmonize cache_flush in hal and also add rram module
This commit is contained in:
parent
39beaba65f
commit
da623ccd01
1 changed files with 18 additions and 0 deletions
|
|
@ -30,3 +30,21 @@ pub mod usb;
|
|||
pub use shared_csr::*;
|
||||
#[cfg(not(feature = "hosted-baosec"))]
|
||||
pub mod mbox;
|
||||
#[cfg(not(feature = "hosted-baosec"))]
|
||||
pub mod rram;
|
||||
|
||||
#[inline(always)]
|
||||
pub fn cache_flush() {
|
||||
unsafe {
|
||||
// cache flush
|
||||
#[rustfmt::skip]
|
||||
core::arch::asm!(
|
||||
"fence.i",
|
||||
".word 0x500F",
|
||||
"nop",
|
||||
"nop",
|
||||
"nop",
|
||||
"nop",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue