amd64 get_mcontext(): third argument to get_fpcontext() is a pointer

Use NULL instead of raw 0

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Konstantin Belousov 2022-01-01 05:55:59 +02:00
parent 1613087a81
commit 76ef4f6348

View File

@ -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;