Date: Sat, 1 Jan 2022 03:58:45 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 76ef4f6348cc - main - amd64 get_mcontext(): third argument to get_fpcontext() is a pointer Message-ID: <202201010358.2013wjtO022066@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201010358.2013wjtO022066>