From nobody Thu Jun 23 18:16:11 2022 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 B37E9876EAA; Thu, 23 Jun 2022 18:16:12 +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 4LTT301pwPz3PKr; Thu, 23 Jun 2022 18:16:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656008172; 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=p9YP0k3ItkgNU9I8BI0TidQuOX5JsguCJzAVHmljGWE=; b=hNMBCQR4JaHJukp/dEbhoq2pSyz0GYaEGmxdrPTQ1SqkgHWQzkr51YwE5/jIAP9qQK8xOT a/IvYBwwgKFzbrc2eK/fsuGyjWuYHrSscwbva9EO6WKCd99jXRDpnC498otGHilU4MlGxf hsm4ZNDY/eGJ/77qqg/XDnAxjziuBBuiUbpigc0Qo70c9lFVdGAj/Ya/mVkXuXDPqOasOR fLrDthItGhGCmkOndXGHoc1uJofwQstXkGKzZlqCpl1KJL27of5YosZV7w7ZwpTPD5pzS7 cXEe8altJ8LGr43dhawGRV7EjrVfy5EcpRD3EI+4JK8w+olEkjTYDaLvEfF+lQ== 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 7EBCE202A4; Thu, 23 Jun 2022 18:16:11 +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 25NIGBU3015007; Thu, 23 Jun 2022 18:16:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25NIGBtf015006; Thu, 23 Jun 2022 18:16:11 GMT (envelope-from git) Date: Thu, 23 Jun 2022 18:16:11 GMT Message-Id: <202206231816.25NIGBtf015006@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 3a4256dd86f0 - main - riscv timer: implement riscv_timer_et_stop() 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: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3a4256dd86f01a35b076892841042bac0054fd64 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656008172; 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=p9YP0k3ItkgNU9I8BI0TidQuOX5JsguCJzAVHmljGWE=; b=GgEOHO9c3BU9fFHutYsxCsNdEz9uzt+EIBwUYLqFxfq5Agwsz9Y3fYY0FbAgq7fwYcyXFL VaYFx4SnzorpSkMQty6cnU+OPXzjocT3F+tseGlxwMjr5Vy03AI0mty+9mbBymJPUmhcmD vh8EzGcJzI/4P0NPoLB3L3OP6VrfEU5iT0PHx6R1maLT1EJNwoz06KPny9c9rv+Qtlzcrv +4jpkIMGJDKB7XnVCY0cx3iyT4XprTrIk3Tx1GYrRwlB4C7U2x2hmjRpA+74H40Q1IBtO4 JK/h2PqgNbII8wmchc8V7s7f1ILI8QOx5iZd/QboJbEF0TW8ZLomQkFIv8ZPsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656008172; a=rsa-sha256; cv=none; b=QvNb2At2PysGj7e0A/l0NIMf30oFFF2LHNdL8vG9Yjda0jGwQ57DzkadHviDkYR/r+aidD VVN8yz2Vr9wCjJA7uMXvzlzBHyeTj6jH1N8HssgRy7xK0JIi5Z5HEN91/X7IKcg2gF1v7z dKMMSjXFNaVloF3YrpMjk7Ll57x+FDodHjTxm9x2IjsBuljN9SLDinorDSft53Zi/UviWT vtcLLlHYBrsDtek5aZvnJKiUWI3+KaudX79imtqz0PjjyqO2gX4Wchk9EO3MEsOyvAjAzI b3gsQGoKmFps6EzEJbcuEzKyPBFhedG6UXjg7K7w89fvkbOOFk7HdN1WrgX+tA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=3a4256dd86f01a35b076892841042bac0054fd64 commit 3a4256dd86f01a35b076892841042bac0054fd64 Author: Mitchell Horne AuthorDate: 2022-06-21 16:23:40 +0000 Commit: Mitchell Horne CommitDate: 2022-06-23 18:15:11 +0000 riscv timer: implement riscv_timer_et_stop() Simply by masking timer interrupts. MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35463 --- sys/riscv/riscv/timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/riscv/riscv/timer.c b/sys/riscv/riscv/timer.c index e7df76fca70b..8f01ef2a720f 100644 --- a/sys/riscv/riscv/timer.c +++ b/sys/riscv/riscv/timer.c @@ -120,7 +120,8 @@ static int riscv_timer_et_stop(struct eventtimer *et) { - /* TODO */ + /* Disable timer interrupts. */ + csr_clear(sie, SIE_STIE); return (0); }