| 194 | } |
| 195 | |
| 196 | static void |
| 197 | align_abort(struct thread *td, struct trapframe *frame, uint64_t esr, |
| 198 | uint64_t far, int lower) |
| 199 | { |
| 200 | if (!lower) { |
| 201 | print_registers(frame); |
| 202 | printf(" far: %16lx\n", far); |
| 203 | printf(" esr: %.8lx\n", esr); |
| 204 | panic("Misaligned access from kernel space!"); |
| 205 | } |
| 206 | |
| 207 | call_trapsignal(td, SIGBUS, BUS_ADRALN, (void *)frame->tf_elr, |
| 208 | ESR_ELx_EXCEPTION(frame->tf_esr)); |
| 209 | userret(td, frame); |
| 210 | } |
| 211 | |
| 212 | |
| 213 | static void |
nothing calls this directly
no test coverage detected