From nobody Fri May 13 17:42:48 2022 X-Original-To: dev-commits-src-branches@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 21D371AE4E57; Fri, 13 May 2022 17:42:49 +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 4L0GFN6JNbz4SSG; Fri, 13 May 2022 17:42:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652463768; 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=5xNEDpPzBI1ICsEcNzFXsLrvaU744WHMEwl1u+o1ILs=; b=vlqBX90i3ReKqNKlLydr+pP5ZZAQZdiK6yFg2osAZjzMGd79R8aM5Ysj7EA/NeXYgxi02t eltaPv2tFZXkYDVzPyMgbiQsko0cu1XWEd3W7ihPtAUYv/VZu6BSaByuSjV2eiAi1cGUZp MGQjyWsKjDvUihSFmAUN+7RrWaLRh9nKtQhLGgcNKxP17P1HwjFkFlz/0DSKE8iCG5eG9d SFpK8CSeJNliiUU8Vy8kvDQcy891mYO/tILZ3MS5iy4iWaARQnplnx56y4kr36RE+i+xwo JqsyOtENv1WpHJt+8l3sYPVlmWplPntzyQzO8Ki1vx7qJmhFUNdPAaonSXP/hA== 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 B912827389; Fri, 13 May 2022 17:42:48 +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 24DHgm1X055550; Fri, 13 May 2022 17:42:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24DHgmF5055549; Fri, 13 May 2022 17:42:48 GMT (envelope-from git) Date: Fri, 13 May 2022 17:42:48 GMT Message-Id: <202205131742.24DHgmF5055549@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 717cf1d3e45f - stable/13 - : Add ELF32_REGSET. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 717cf1d3e45fb93c9d3a6abcc0738b98136d1c19 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652463768; 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=5xNEDpPzBI1ICsEcNzFXsLrvaU744WHMEwl1u+o1ILs=; b=vxdSppJotKLBU4PFKYa4dcOoEibK6/c2LzmsJQky82s7KMWCNN7RbYbBu+gQGHtmThMpz8 Nbap7omW+K9p+yesAKgiURAh0Sxk/A357h26glAMFyYdXKJpYrPn/0dq9rVw80WP2nKI0q wVcr3vgwqrJTm4RpmMi+hqdoQXBnhmJLsWo21N9XJJAXHZVbhaPlzb1kf5f2Z/BeJSSNcN R+UAm1MTVMFGD+yU335itOIcoX26E5RdQuUAJudEZkE1znOspcAzWilzJ0v7DF29A6RTEs Kzej0aOksXROgA5sbXwXCzKtOqHlMfgS1MIpUdp52etKulMuR4914CSpkkgfpQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652463768; a=rsa-sha256; cv=none; b=mTuo3Uc6YB0qeKzIUe1aFnvhxdk8xS4gnETchMPIdpiQyXqKvLWcgNe+RmSvdwRMj1sZS7 Y0SPS+s7lJtjRA3yG6unXtOe+jml8E43U0kN/DPcraH1A2JvEHq1Y5TPUKYZppAFOvieM9 TK/J5jqVCBA7qVZbLLgxdJzisRpqxuqiy8pMFMLQQdRVqrLTYmBEgTRJKAm1pDVfD4Dzvq 1oWLC4a4dc9YeZsByY1ya6znTkBnUP91vnRvFeK6zlLKzZu7rOXixXc7BHYWjEvU3Dmcf+ 5lA5q2ADCNPVgioxEFqWFdLtW2vTOczBBZnrXuTBcWWcfWvBMJO3wAJ1/LYlwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=717cf1d3e45fb93c9d3a6abcc0738b98136d1c19 commit 717cf1d3e45fb93c9d3a6abcc0738b98136d1c19 Author: John Baldwin AuthorDate: 2022-03-23 20:33:06 +0000 Commit: John Baldwin CommitDate: 2022-05-13 00:02:44 +0000 : Add ELF32_REGSET. This permits adding a register set for FREEBSD32 ABIs. While here, include to make this header more self-contained in the kernel. Reviewed by: andrew, markj Sponsored by: The University of Cambridge, Google, Inc. Differential Revision: https://reviews.freebsd.org/D34536 (cherry picked from commit b1cd03dd2989a125074f049b5795b1d6479ea632) --- sys/sys/reg.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/sys/reg.h b/sys/sys/reg.h index e06a5f9a19ed..97803498e2a0 100644 --- a/sys/sys/reg.h +++ b/sys/sys/reg.h @@ -41,6 +41,8 @@ #include #ifdef _KERNEL +#include + struct sbuf; struct regset; @@ -59,6 +61,10 @@ struct regset { SET_DECLARE(__elfN(regset), struct regset); #define ELF_REGSET(_regset) DATA_SET(__elfN(regset), _regset) #endif +#ifdef COMPAT_FREEBSD32 +SET_DECLARE(elf32_regset, struct regset); +#define ELF32_REGSET(_regset) DATA_SET(elf32_regset, _regset) +#endif int fill_regs(struct thread *, struct reg *); int set_regs(struct thread *, struct reg *);