Subrata Banik has submitted this change. ( https://review.coreboot.org/c/coreboot/+/83047?usp=email )
(
1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: libpayload/arch/x86: Fix register alignment in exception state dump ......................................................................
libpayload/arch/x86: Fix register alignment in exception state dump
Removed an extra space character from the `printf` format string in `dump_exception_state` to ensure proper alignment of register values when printed during exception handling.
BUG=b:336265399 TEST=Built and booted google/rex64 successfully. Verified correct alignment in exception state dumps.
Change-Id: I8ff92775e32ee754967b1b0a43cd68971b4aadfc Signed-off-by: Subrata Banik subratabanik@google.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/83047 Reviewed-by: Julius Werner jwerner@chromium.org Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M payloads/libpayload/arch/x86/exception.c 1 file changed, 6 insertions(+), 6 deletions(-)
Approvals: Julius Werner: Looks good to me, approved build bot (Jenkins): Verified
diff --git a/payloads/libpayload/arch/x86/exception.c b/payloads/libpayload/arch/x86/exception.c index a43a993..fdab042 100644 --- a/payloads/libpayload/arch/x86/exception.c +++ b/payloads/libpayload/arch/x86/exception.c @@ -162,12 +162,12 @@ #if CONFIG(LP_ARCH_X86_64) printf("REG_R8: 0x%016zx\n", exception_state->regs.reg_r8); printf("REG_R9: 0x%016zx\n", exception_state->regs.reg_r9); - printf("REG_R10: 0x%016zx\n", exception_state->regs.reg_r10); - printf("REG_R11: 0x%016zx\n", exception_state->regs.reg_r11); - printf("REG_R12: 0x%016zx\n", exception_state->regs.reg_r12); - printf("REG_R13: 0x%016zx\n", exception_state->regs.reg_r13); - printf("REG_R14: 0x%016zx\n", exception_state->regs.reg_r14); - printf("REG_R15: 0x%016zx\n", exception_state->regs.reg_r15); + printf("REG_R10: 0x%016zx\n", exception_state->regs.reg_r10); + printf("REG_R11: 0x%016zx\n", exception_state->regs.reg_r11); + printf("REG_R12: 0x%016zx\n", exception_state->regs.reg_r12); + printf("REG_R13: 0x%016zx\n", exception_state->regs.reg_r13); + printf("REG_R14: 0x%016zx\n", exception_state->regs.reg_r14); + printf("REG_R15: 0x%016zx\n", exception_state->regs.reg_r15); #endif printf("CS: 0x%04x\n", exception_state->regs.cs); printf("DS: 0x%04x\n", exception_state->regs.ds);