From nobody Tue Jan 04 14:05:06 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4C9831920125; Tue, 4 Jan 2022 14:05:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JSvWl03tdz3HWX; Tue, 4 Jan 2022 14:05:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D5F161A48A; Tue, 4 Jan 2022 14:05:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 204E56ng003941; Tue, 4 Jan 2022 14:05:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 204E566R003940; Tue, 4 Jan 2022 14:05:06 GMT (envelope-from git) Date: Tue, 4 Jan 2022 14:05:06 GMT Message-Id: <202201041405.204E566R003940@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Edward Tomasz Napierala Subject: git: 562bc0a943d1 - main - Unstaticize {get,set}_fpcontext() on amd64 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: trasz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 562bc0a943d1fad1a9b551557609d2941a851b4d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641305107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Pe0QQtPAGohhhMaHCfp0QIFQC2t57v+5cZiO0UGCmY0=; b=XcpJaDJSFakg/hKAokFikOLp2QuyXRnOwkTihX0sw+QOASGLvrpEC+Mn01+qXPMhR3+ddH nrRaouzhLdkclmIk3BeernaPM9cSw3ySgCD6ZmJVkvrck97bHipy7xd3txvgqWVNJoAXYi vzs8uaw6+OyJhScfMCsCkk8VpnZjN0THEPdk+4K5mDFmoQz8FA8sI00zyGBqI1r0HTKc+/ ESpX+g2EQoBtkER1UxZaTXfQmMYSCSb311Dfa/SoagMGfRKIzrRC6EOZkS6ZbEdVHNc/J6 HiVPqA8yfrjOT99qyrwG0wMEKHyfGDRfC8TZBaKrJWpeCXLtlex1ZSRfNQLPzw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641305107; a=rsa-sha256; cv=none; b=Thj2VhE9oCDmfurONabCklAZD5tUWJrkJoFAKb2pn3q3o1RqWepLt+VW1nMZ4uIBSyGOS5 u1oSHt8Px1kk0doQPHlN9JDkwT4TcIKr8iUYTZlGIlvrQYXpF5RM3t1UQJrcQlBO7wlV4a pidThdK6vFfF9EYw1W7uA1LK/neIOO/eoZEYnJhzIkEGVCiIUidM3uyJUABmdv/gYgZA2K 2W0HNQE+6uEaRlH26BWy/9NQqiMP8IY65hio8WXSw7IcWxo1ON6MFhwqzeP/4LOwlluFfm hq7gVyuuj2+FmKW+q3rBXvtn63ZOibNRISDjVj/opjfR2qObp5t+9Av1JFAfzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=562bc0a943d1fad1a9b551557609d2941a851b4d commit 562bc0a943d1fad1a9b551557609d2941a851b4d Author: Edward Tomasz Napierala AuthorDate: 2022-01-04 13:25:12 +0000 Commit: Edward Tomasz Napierala CommitDate: 2022-01-04 13:25:12 +0000 Unstaticize {get,set}_fpcontext() on amd64 This will be used to fix Linux signal delivery. Discussed With: kib Sponsored By: EPSRC --- sys/amd64/amd64/exec_machdep.c | 9 ++------- sys/amd64/include/md_var.h | 5 +++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/amd64/amd64/exec_machdep.c b/sys/amd64/amd64/exec_machdep.c index 0c2bebaea8f3..233f222b49f1 100644 --- a/sys/amd64/amd64/exec_machdep.c +++ b/sys/amd64/amd64/exec_machdep.c @@ -95,11 +95,6 @@ __FBSDID("$FreeBSD$"); #include #include -static void get_fpcontext(struct thread *td, mcontext_t *mcp, - char **xfpusave, size_t *xfpusave_len); -static int set_fpcontext(struct thread *td, mcontext_t *mcp, - char *xfpustate, size_t xfpustate_len); - /* * Send an interrupt to process. * @@ -714,7 +709,7 @@ set_mcontext(struct thread *td, mcontext_t *mcp) return (0); } -static void +void get_fpcontext(struct thread *td, mcontext_t *mcp, char **xfpusave, size_t *xfpusave_len) { @@ -735,7 +730,7 @@ get_fpcontext(struct thread *td, mcontext_t *mcp, char **xfpusave, } } -static int +int set_fpcontext(struct thread *td, mcontext_t *mcp, char *xfpustate, size_t xfpustate_len) { diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h index 53139711bbff..53358600dc79 100644 --- a/sys/amd64/include/md_var.h +++ b/sys/amd64/include/md_var.h @@ -54,6 +54,7 @@ extern vm_paddr_t KERNend; extern bool efi_boot; +struct __mcontext; struct savefpu; struct sysentvec; @@ -88,5 +89,9 @@ void set_top_of_stack_td(struct thread *td); struct savefpu *get_pcb_user_save_td(struct thread *td); struct savefpu *get_pcb_user_save_pcb(struct pcb *pcb); void pci_early_quirks(void); +void get_fpcontext(struct thread *td, struct __mcontext *mcp, + char **xfpusave, size_t *xfpusave_len); +int set_fpcontext(struct thread *td, struct __mcontext *mcp, + char *xfpustate, size_t xfpustate_len); #endif /* !_MACHINE_MD_VAR_H_ */