aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2022-01-01 03:55:59 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2022-01-02 16:43:00 +0000
commit7d71f459275b28ebad0291b4412df8f769513b68 (patch)
tree8bf0150b3cee23c0bd25b2c0d5a3a95a6912c757
parent0af1cbb038a11a2734afbc120c3d46adb836ee4f (diff)
amd64 get_mcontext(): third argument to get_fpcontext() is a pointer
(cherry picked from commit 76ef4f6348ccad73317ce2d10ab7a78d8591ba1a)
-rw-r--r--sys/amd64/amd64/exec_machdep.c2
1 files changed, 1 insertions, 1 deletions
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;