Skip to content

Commit

Permalink
Fix 2de3770.
Browse files Browse the repository at this point in the history
whitequark committed Jan 25, 2017
1 parent de17908 commit 58a0e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/firmware/libboard/cache.rs
Original file line number Diff line number Diff line change
@@ -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")
}
}
}

0 comments on commit 58a0e4c

Please sign in to comment.