2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-19 00:16:29 +08:00
This commit is contained in:
whitequark 2017-01-25 01:24:03 +00:00
parent de17908b38
commit 58a0e4c97f

View File

@ -38,7 +38,7 @@ pub fn flush_l2_cache() {
unsafe {
for i in 0..2 * (csr::CONFIG_L2_SIZE as usize) / 4 {
let addr = mem::MAIN_RAM_BASE + i * 4;
asm!("l.lwz r0, 0($1)"::"r"(addr):"r0":"volatile")
asm!("l.lwz r13, 0(${0})"::"r"(addr):"r13":"volatile")
}
}
}