git: 76ef4f6348cc - main - amd64 get_mcontext(): third argument to get_fpcontext() is a pointer
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 01 Jan 2022 03:58:45 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=76ef4f6348ccad73317ce2d10ab7a78d8591ba1a commit 76ef4f6348ccad73317ce2d10ab7a78d8591ba1a Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-01-01 03:55:59 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-01-01 03:58:21 +0000 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 --- 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 b93fe7c4b3c7..0c2bebaea8f3 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;