git: 91522683d49f - main - dtrace/arm64: Store the fault address when suppressing a page fault

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Thu, 15 Jun 2023 16:39:41 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=91522683d49ff9757b9c5bb6e7de69266e26dcef

commit 91522683d49ff9757b9c5bb6e7de69266e26dcef
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-06-15 16:11:11 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-06-15 16:38:45 +0000

    dtrace/arm64: Store the fault address when suppressing a page fault
    
    Reviewed by:    andrew
    Sponsored by:   Innovate UK
    Differential Revision:  https://reviews.freebsd.org/D40539
---
 sys/cddl/dev/dtrace/aarch64/dtrace_subr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/cddl/dev/dtrace/aarch64/dtrace_subr.c b/sys/cddl/dev/dtrace/aarch64/dtrace_subr.c
index 694e3c70ae2d..06d20d7d9cd3 100644
--- a/sys/cddl/dev/dtrace/aarch64/dtrace_subr.c
+++ b/sys/cddl/dev/dtrace/aarch64/dtrace_subr.c
@@ -208,7 +208,7 @@ dtrace_trap(struct trapframe *frame, u_int type)
 		case EXCP_DATA_ABORT:
 			/* Flag a bad address. */
 			cpu_core[curcpu].cpuc_dtrace_flags |= CPU_DTRACE_BADADDR;
-			cpu_core[curcpu].cpuc_dtrace_illval = 0;
+			cpu_core[curcpu].cpuc_dtrace_illval = frame->tf_far;
 
 			/*
 			 * Offset the instruction pointer to the instruction