From nobody Thu Feb 09 07:56:37 2023 X-Original-To: dev-commits-src-all@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 4PC8MV32s0z3my5B; Thu, 9 Feb 2023 07:56:38 +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 4PC8MT6WDGz44by; Thu, 9 Feb 2023 07:56:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675929397; 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=+AlRpqsQmJit7TSvVkn9HMyFLLRSrTUwx3cWWcHi99U=; b=H51QAtmKz2WM+6LcDZPKo0UpR7fFMAlFKo8yUDmvHGb5az/xH+x55lufjbXFej5SZRdddv VfIZS/Cs1m3XiNXSaSdRslJx34ZbQHPtOsAhQLPRBoxFRenITxminPCnqvhzZ9xcZNk7nY 0JQWr4M1zgdVPbxGuEfw2LSAWzrajbzH/xTASDW2yfzWwW1fzWJCG83Zp+HK1BBDNfLrV5 suH+CXwcOPwot3IqWVcBAHK4xP++9e1oKBvTTyWNC45VIXSL0J6PacSSH9ylqskmwgZ/q7 uOJ9WCOYzNzu9NJ1eC0yVdMb0SnNgRbugYv3Yk8w4lzNN5KexwVe05zoAhTItQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675929397; 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=+AlRpqsQmJit7TSvVkn9HMyFLLRSrTUwx3cWWcHi99U=; b=xQ8ogyf2Wa5Wv/D4AY44nbB32cNxVb6qGcdLkFhWznAb4N6cj6B8neSpWFJkugiVEONKUp OTcNHgCDMSAoXOoiym466+JSExDgDtg4GJWjeX2uECMfC0eH90yBtEXDgevy05w/wJak1D r48X0JyaYk3xVO+YvQfhrWhzlWUQpkXwpeuy/bjYCveSRWO8nW3sRzSwF6ra6YrC69EsYL 1tQ4gxWyqsbvz1T7YYHtY5XgwSST//8wNslOuL3ycDIwpXEYPkWXVMzA1MU3aUODHzZn8R 7hOCZvbNDfX7T+QkPMW+X+j7WIHA8h0cHyQrkYpoYjpitJWBMHMXuEXrodKg/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675929397; a=rsa-sha256; cv=none; b=rMPKYy+KVxMl6EAGt3UAsHtK229YBv/P8S4vYurloVOqzWTsglmXS9WPl1tbjCvVsjlITQ cWWTk/mvPenG3BiX9ROyy2Abv1sYZnxLEDh5q/g/QgsZAS2v9M7GXqR3WmzE4qEGFYmCCM m2sctatbXkxPhBHZAdtomJWrwlbX41D00m+1VdsoGK71ZIQPNW8IO6yavRScMeGKg3j+4v oh6M55q+Yjb53WBjSuUu+D/utZC620PWxSUGA7l1r4+7tl4ufZmnQ2wy7mTqhYUWlU8J3B oR4ZVaitv9khKG/QDhz0VPaQMzSYSMEIeU2Tn3z9PnuNvl98/sK7TtwqDoJUog== 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 4PC8MT5cYtzVHg; Thu, 9 Feb 2023 07:56:37 +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 3197ubkB092772; Thu, 9 Feb 2023 07:56:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3197ubJf092771; Thu, 9 Feb 2023 07:56:37 GMT (envelope-from git) Date: Thu, 9 Feb 2023 07:56:37 GMT Message-Id: <202302090756.3197ubJf092771@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: 87271de92c4a - stable/13 - Unstaticize {get,set}_fpcontext() on amd64 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 87271de92c4a69cfe92656c16bbef467e60b8c3b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=87271de92c4a69cfe92656c16bbef467e60b8c3b commit 87271de92c4a69cfe92656c16bbef467e60b8c3b Author: Edward Tomasz Napierala AuthorDate: 2022-01-04 13:25:12 +0000 Commit: Dmitry Chagin CommitDate: 2023-02-09 07:54:16 +0000 Unstaticize {get,set}_fpcontext() on amd64 This will be used to fix Linux signal delivery. Discussed With: kib Sponsored By: EPSRC (cherry picked from commit 562bc0a943d1fad1a9b551557609d2941a851b4d) --- 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 c8610f495bfe..13dedac784d1 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; @@ -89,5 +90,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_ */