Check if DIT has been enabled.
(&self)
| 59 | |
| 60 | /// Check if DIT has been enabled. |
| 61 | pub fn is_enabled(&self) -> bool { |
| 62 | #[cfg(target_arch = "aarch64")] |
| 63 | if self.is_supported() { |
| 64 | return unsafe { get_dit_enabled() }; |
| 65 | } |
| 66 | |
| 67 | false |
| 68 | } |
| 69 | |
| 70 | /// Check if DIT is supported by this CPU. |
| 71 | pub fn is_supported(&self) -> bool { |
nothing calls this directly
no test coverage detected