From nobody Mon Dec 13 00:29:12 2021 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 10C9018F53AD; Mon, 13 Dec 2021 00:29:15 +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 4JC2ST3F0Zz3hWR; Mon, 13 Dec 2021 00:29:13 +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 055B82A42; Mon, 13 Dec 2021 00:29:13 +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 1BD0TCLN060177; Mon, 13 Dec 2021 00:29:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BD0TCxw060176; Mon, 13 Dec 2021 00:29:12 GMT (envelope-from git) Date: Mon, 13 Dec 2021 00:29:12 GMT Message-Id: <202112130029.1BD0TCxw060176@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 419120bb522e - stable/12 - arm64: implement COMPAT_FREEBSD32 fill/set dbregs/fpregs 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 419120bb522e852eb2c81249cd8d9004ad2dcca5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639355353; 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=U3owgbzbsiPwS2pcorBkslISObAWO2LViOL3dUB0OLM=; b=KP80GDt5LFOvFByOOW24oGQQNGeAQMl4bERzJX1gcX8Rjh4jS04uqZmJlYRUN+FBcqrqob s5wa0BSmbnQW/itRiqT5DPQgsWw38uKezrMmBzf+ko4Svq/b7W99NovQ8r0uQ21UagXtIy Jqp+VvujZJr8qqZoMcuJ0tPx6JBo3qyFeANJ6Q1T+z/nGePulfikJTfzqmJCuYuHwyOK+U fYpLlMsuEmZxLEayT3hCmodoht9dd3BLxI1kjRIC/PdlpHG9onm95RqRYZ0zE7st9lTsm1 7y9E+3CUF67f5KdreQbR1nKPSJOJb1bBQ4QqJatXSYYrlIpwBGotVUNRfw0l/Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639355353; a=rsa-sha256; cv=none; b=rBKu/d4fZytKK0BQL9yvXLm7STujvW/R/MvBZxVmrixU5FYfk5IakKziR+juZM0Bn+aEfF EYORR6fE/BHrD6eFQKs55MasoNlSoculXq5AmfavjZS9tsqLXUJApw5hHQJXcXZblykdnn cG7g+pQQliQxvANVgLPVEl/FkjEWGVSLdSSDsdD5o/rBvUmHoSrBNpncOYJVoirt9X+VcR On6qdxFbdxbtpkyqyiynI2Y0BczgXXVoc+TvNcpesWKcUrxLXD9ttS0GgyBtoxHccdGxfa Gigxe9e0HXmUmA4IvvGKh6X6T3bOucMf/O/rHzvW3CLV8DSErAk/rkmEq1UlWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=419120bb522e852eb2c81249cd8d9004ad2dcca5 commit 419120bb522e852eb2c81249cd8d9004ad2dcca5 Author: Ed Maste AuthorDate: 2021-03-17 14:10:41 +0000 Commit: Ed Maste CommitDate: 2021-12-12 22:43:58 +0000 arm64: implement COMPAT_FREEBSD32 fill/set dbregs/fpregs On FreeBSD/arm fill_fpregs, fill_dbregs are stubs that zero the reg struct and return success. set_fpregs and set_dbregs do nothing and return success. Provide the same implementation for arm64 COMPAT_FREEBSD32. Reviewed by: andrew MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29314 (cherry picked from commit 5be27cbf16c85ce95d21db57349f61494f851821) --- sys/arm64/arm64/machdep.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c index c0df74bd1f6f..d0c72d3fdf15 100644 --- a/sys/arm64/arm64/machdep.c +++ b/sys/arm64/arm64/machdep.c @@ -315,36 +315,35 @@ set_regs32(struct thread *td, struct reg32 *regs) return (EDOOFUS); } +/* XXX fill/set dbregs/fpregs are stubbed on 32-bit arm. */ int fill_fpregs32(struct thread *td, struct fpreg32 *regs) { - printf("ARM64TODO: fill_fpregs32"); - return (EDOOFUS); + memset(regs, 0, sizeof(*regs)); + return (0); } int set_fpregs32(struct thread *td, struct fpreg32 *regs) { - printf("ARM64TODO: set_fpregs32"); - return (EDOOFUS); + return (0); } int fill_dbregs32(struct thread *td, struct dbreg32 *regs) { - printf("ARM64TODO: fill_dbregs32"); - return (EDOOFUS); + memset(regs, 0, sizeof(*regs)); + return (0); } int set_dbregs32(struct thread *td, struct dbreg32 *regs) { - printf("ARM64TODO: set_dbregs32"); - return (EDOOFUS); + return (0); } #endif