Encode the exception on 24-bits
(&self)
| 124 | |
| 125 | /// Encode the exception on 24-bits |
| 126 | pub fn encode(&self) -> u32 { |
| 127 | ((self.code() as u32) << 16) + self.associated_data().unwrap_or(0) as u32 |
| 128 | } |
| 129 | |
| 130 | /// Encode the exception with supervisor informations on 32-bits. |
| 131 | /// `was_sv` indicates if the error occurred in supervisor mode (else it was on userland mode). |
no test coverage detected