commit | 26866312f5f0cde5855a6c14c30e0cdbc33cc58b | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Mar 31 08:55:51 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Mar 31 08:55:51 2023 +0000 |
tree | 2abe1ec0146fc314bc9cac6728c3721c4df38b05 | |
parent | eb27db4bc3733cdd0ef08b362ef5816cc2bdcb7b [diff] | |
parent | 7d6944fdf49ca9e12f346f23a085789bb70775d8 [diff] |
Merge "pvmfw: Improve asm! options for DC CVAU"
diff --git a/pvmfw/src/helpers.rs b/pvmfw/src/helpers.rs index 4df9386..5d9a75b 100644 --- a/pvmfw/src/helpers.rs +++ b/pvmfw/src/helpers.rs
@@ -97,7 +97,13 @@ for line in (start..end).step_by(line_size) { // SAFETY - Clearing cache lines shouldn't have Rust-visible side effects. - unsafe { asm!("dc cvau, {x}", x = in(reg) line) } + unsafe { + asm!( + "dc cvau, {x}", + x = in(reg) line, + options(nomem, nostack, preserves_flags), + ) + } } }