14 lines
295 B
Rust
14 lines
295 B
Rust
|
use cache_utils::flush;
|
||
|
use cache_utils::mmap::MMappedMemory;
|
||
|
|
||
|
pub fn main() {
|
||
|
let m = unsafe { MMappedMemory::new(2 << 20) };
|
||
|
let array = m.slice();
|
||
|
loop {
|
||
|
unsafe {
|
||
|
flush(&array[0]);
|
||
|
flush(&array[(1 << 8) ^ (1 << 12) ^ (1 << 10)]);
|
||
|
}
|
||
|
}
|
||
|
}
|