git: b81e1c6b72f1 - main - Don't print leading 0's in the arm64 esr
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 May 2023 16:20:18 UTC
The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=b81e1c6b72f1b0ee57311c2bf51c3549d5c44d3a commit b81e1c6b72f1b0ee57311c2bf51c3549d5c44d3a Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2023-05-16 09:42:45 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2023-05-24 16:20:06 +0000 Don't print leading 0's in the arm64 esr We don't print leading zeros for other registers, so do the same with ESR_EL1. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D40129 --- sys/arm64/arm64/trap.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c index 0ee1bed0c35a..95f2bf46e18e 100644 --- a/sys/arm64/arm64/trap.c +++ b/sys/arm64/arm64/trap.c @@ -213,7 +213,7 @@ align_abort(struct thread *td, struct trapframe *frame, uint64_t esr, if (!lower) { print_registers(frame); print_gp_register("far", far); - printf(" esr: %.16lx\n", esr); + printf(" esr: %16lx\n", esr); panic("Misaligned access from kernel space!"); } @@ -330,7 +330,7 @@ data_abort(struct thread *td, struct trapframe *frame, uint64_t esr, WARN_GIANTOK, NULL, "Kernel page fault") != 0) { print_registers(frame); print_gp_register("far", far); - printf(" esr: %.16lx\n", esr); + printf(" esr: %16lx\n", esr); panic("data abort in critical section or under mutex"); } @@ -371,7 +371,7 @@ bad_far: printf("Fatal data abort:\n"); print_registers(frame); print_gp_register("far", far); - printf(" esr: %.16lx\n", esr); + printf(" esr: %16lx\n", esr); #ifdef KDB if (debugger_on_trap) { @@ -499,7 +499,7 @@ do_el1h_sync(struct thread *td, struct trapframe *frame) #endif { print_registers(frame); - printf(" esr: %.16lx\n", esr); + printf(" esr: %16lx\n", esr); panic("VFP exception in the kernel"); } break; @@ -512,7 +512,7 @@ do_el1h_sync(struct thread *td, struct trapframe *frame) } else { print_registers(frame); print_gp_register("far", far); - printf(" esr: %.16lx\n", esr); + printf(" esr: %16lx\n", esr); panic("Unhandled EL1 %s abort: %x", exception == EXCP_INSN_ABORT ? "instruction" : "data", dfsc); @@ -630,7 +630,7 @@ do_el0_sync(struct thread *td, struct trapframe *frame) else { print_registers(frame); print_gp_register("far", far); - printf(" esr: %.16lx\n", esr); + printf(" esr: %16lx\n", esr); panic("Unhandled EL0 %s abort: %x", exception == EXCP_INSN_ABORT_L ? "instruction" : "data", dfsc); @@ -723,7 +723,7 @@ do_serror(struct trapframe *frame) print_registers(frame); print_gp_register("far", far); - printf(" esr: %.16lx\n", esr); + printf(" esr: %16lx\n", esr); panic("Unhandled System Error"); } @@ -738,6 +738,6 @@ unhandled_exception(struct trapframe *frame) print_registers(frame); print_gp_register("far", far); - printf(" esr: %.16lx\n", esr); + printf(" esr: %16lx\n", esr); panic("Unhandled exception"); }