We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac61b8 commit 49a8bdfCopy full SHA for 49a8bdf
src/cache.rs
@@ -77,5 +77,14 @@ impl<T> Uncache for *mut T {
77
78
#[inline]
79
fn assert_addr_cached(addr: usize) {
80
- assert!(addr <= 0x805F_FFFF && addr >= 0x8000_0000);
+ /*
81
+ SRAM memory: 0x8000_0000 to 0x805F_FFFF
82
+ AI memory: 0x8060_0000 to 0x807F_FFFF
83
+ SRAM memory includes two parts: MEM0 and MEM1
84
+ MEM0 memory: 0x8000_0000 to 0x803F_FFFF
85
+ MEM1 memory: 0x8040_0000 to 0x805F_FFFF
86
+ */
87
+ // assure that memory is within SRAM or AI
88
+ // todo: should we exclude AI?
89
+ assert!(addr <= 0x807F_FFFF && addr >= 0x8000_0000);
90
}
0 commit comments