git: 7d71f459275b - stable/13 - amd64 get_mcontext(): third argument to get_fpcontext() is a pointer

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sun, 02 Jan 2022 19:08:07 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=7d71f459275b28ebad0291b4412df8f769513b68

commit 7d71f459275b28ebad0291b4412df8f769513b68
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-01-01 03:55:59 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-01-02 16:43:00 +0000

    amd64 get_mcontext(): third argument to get_fpcontext() is a pointer
    
    (cherry picked from commit 76ef4f6348ccad73317ce2d10ab7a78d8591ba1a)
---
 sys/amd64/amd64/exec_machdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/amd64/amd64/exec_machdep.c b/sys/amd64/amd64/exec_machdep.c
index 9a2b45015d92..a4255c348212 100644
--- a/sys/amd64/amd64/exec_machdep.c
+++ b/sys/amd64/amd64/exec_machdep.c
@@ -631,7 +631,7 @@ get_mcontext(struct thread *td, mcontext_t *mcp, int flags)
 	mcp->mc_gs = tp->tf_gs;
 	mcp->mc_flags = tp->tf_flags;
 	mcp->mc_len = sizeof(*mcp);
-	get_fpcontext(td, mcp, NULL, 0);
+	get_fpcontext(td, mcp, NULL, NULL);
 	update_pcb_bases(pcb);
 	mcp->mc_fsbase = pcb->pcb_fsbase;
 	mcp->mc_gsbase = pcb->pcb_gsbase;