Date: Sat, 17 Feb 2024 21:32:57 GMT From: Vladimir Kondratyev <wulf@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 460a6c6a9f02 - stable/14 - LinuxKPI: Implement ioread64() Message-ID: <202402172132.41HLWvVn020655@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=460a6c6a9f020c348777431ed1ecc4a26120e476 commit 460a6c6a9f020c348777431ed1ecc4a26120e476 Author: Vladimir Kondratyev <wulf@FreeBSD.org> AuthorDate: 2023-12-24 08:19:58 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402172132.41HLWvVn020655>