MCPcopy Create free account
hub / github.com/RustCrypto/utils / restore_dit

Function restore_dit

dit/src/lib.rs:129–134  ·  view source on GitHub ↗
(enabled: bool)

Source from the content-addressed store, hash-verified

127#[cfg(target_arch = "aarch64")]
128#[target_feature(enable = "dit")]
129unsafe fn restore_dit(enabled: bool) {
130 if !enabled {
131 // Disable DIT
132 unsafe { asm!("msr DIT, #0", options(nomem, nostack, preserves_flags)) };
133 }
134}
135
136#[cfg(target_arch = "aarch64")]
137#[cfg(test)]

Callers 2

dropMethod · 0.85
asm_wrappersFunction · 0.85

Calls

no outgoing calls

Tested by 1

asm_wrappersFunction · 0.68