git: 9b87a3a65ac6 - stable/13 - Print the correct register for the arm64 elr

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Tue, 14 Dec 2021 11:07:24 UTC
The branch stable/13 has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=9b87a3a65ac6e204e503085a8654c0d53867455b

commit 9b87a3a65ac6e204e503085a8654c0d53867455b
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2021-11-01 11:19:57 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2021-12-14 10:58:01 +0000

    Print the correct register for the arm64 elr
    
    In 7ec86b6609912 ("Also print symbols when printing arm64 registers")
    a new function was created to print most registers. Unfortunately the
    Link Register (LR) was being printed when we should have printed the
    Exception Link Register (ELR).
    
    Fix this by adding the missing 'e'.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 62cbc00d2f57785c747632b1a5ba7571281d17c4)
---
 sys/arm64/arm64/trap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c
index a8e016d6bb61..2eee1392ca49 100644
--- a/sys/arm64/arm64/trap.c
+++ b/sys/arm64/arm64/trap.c
@@ -397,7 +397,7 @@ print_registers(struct trapframe *frame)
 	}
 	printf("  sp: %16lx\n", frame->tf_sp);
 	print_gp_register(" lr", frame->tf_lr);
-	print_gp_register("elr", frame->tf_lr);
+	print_gp_register("elr", frame->tf_elr);
 	printf("spsr:         %8x\n", frame->tf_spsr);
 }