From nobody Sat Feb 17 21:32:57 2024 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 4TchqG03qSz59kts; Sat, 17 Feb 2024 21:32:58 +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 4TchqF3CKyz4hRY; Sat, 17 Feb 2024 21:32:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205577; 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=wpv6KXZV2PspVNQDWLKJsKvB5BrL9C0Izz+zb9md5Ao=; b=f+VD4es79e6xyoknnJ1ojoUTQX1RxpMfSUbIVAKHCKu+2OYRHOANoYXLS2sXvN2aELNFOc ikxahYI/S6duHmKWhcwb+U8E6o1Bwu4oQALezyrloyG/CabuGvT+4gCZJl0Dqo2SuSGdEJ a2wYTgJ6upk4GwiHN9EaPDl8iX5lWHf1kiU8+r3brkH8+87J3rMKV28+jxlqkdStdhuGyR vabjj6ZEZUFB+4wvC5SArH5bFxrxCo1B+M9JfxfBkOaixAzYTivtqvfgOUiSEgX1sTwYQC qt4Btu17k91aUpUGQioPsFAbEOi7VGae549eIpBux5vpDxH+U2ApfKTZrT6VAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205577; 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=wpv6KXZV2PspVNQDWLKJsKvB5BrL9C0Izz+zb9md5Ao=; b=oL0MNNeOYm8sjtfsomXlc5hOGidkBkDkTzqQxVNuu8M7QUTMcSqH8WuZhCdX6jwztaYD48 jlPwh0PfZ1uKY2CTqeLuYyIS1BiH0Xu4bH1LCs7utLhVNjtO8iy28VuNdvbJ6Df4PL7inQ b3nkikU9kPvnZ93OHbRofOwutPeGwecyKD8ZfYI2lM1WRllBUD6WJqROcH0baKLJO2Oxyg zK3m6DRj7M5cxAb8KmEtUAhz0Emo0TF1cigtWvTPW7YsKYXp9bbR93cByGk4rhnpzbIjuP CQW/t4sTYAei8PMOi/HFmLcT/pZBXoTm3ZseH6b+XRq3PH8X/5nKF/j9RQbalg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205577; a=rsa-sha256; cv=none; b=D0qKf+9PfaiMvWVL0p91ATXv2KwGWf1w0LSsRfN9cPriQVEpNqVl1OhgmRKLJM5FdeT5XG yUpMPqlXLDVuKUQ6IeTCzz3szP1Z9Mr9BagsEXn9t3zqH/lqq0VQrXdGNG9dW3Y7fyUIBU WVndzqABS7OetpU8Ix+QMdF8l1fml/SzpEct5L1JPCfIM5J17ad894/EXkEr5F0xQ6AjJq YEPkkZ567F7ivAFBnBmXu1AcV0uiZA9pDjMb7Wc7ruklGMcJkHFw8DiFo9RlRqSMF1800U mfXM2j1y7MdSXo0KgkQi41qeI9an4Hm1NiPb4CDHYzKvkyQlxJq7QFDlG3ASZw== 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 4TchqF2HnWzP9P; Sat, 17 Feb 2024 21:32:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWvCU020658; Sat, 17 Feb 2024 21:32:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWvVn020655; Sat, 17 Feb 2024 21:32:57 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:57 GMT Message-Id: <202402172132.41HLWvVn020655@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 460a6c6a9f02 - stable/14 - LinuxKPI: Implement ioread64() 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: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 460a6c6a9f020c348777431ed1ecc4a26120e476 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=460a6c6a9f020c348777431ed1ecc4a26120e476 commit 460a6c6a9f020c348777431ed1ecc4a26120e476 Author: Vladimir Kondratyev AuthorDate: 2023-12-24 08:19:58 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-02-17 20:58:37 +0000 LinuxKPI: Implement ioread64() Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42801 (cherry picked from commit dcfc983373c3e3dcd7025e5f65832ab696832261) --- sys/compat/linuxkpi/common/include/linux/io.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/io.h b/sys/compat/linuxkpi/common/include/linux/io.h index 2345967898e6..b0a4109f3afb 100644 --- a/sys/compat/linuxkpi/common/include/linux/io.h +++ b/sys/compat/linuxkpi/common/include/linux/io.h @@ -349,6 +349,14 @@ ioread32be(const volatile void *addr) } #define ioread32be(addr) ioread32be(addr) +#undef ioread64 +static inline uint64_t +ioread64(const volatile void *addr) +{ + return (readq(addr)); +} +#define ioread64(addr) ioread64(addr) + #undef iowrite8 static inline void iowrite8(uint8_t v, volatile void *addr)