Date: Wed, 31 Mar 2021 16:07:15 GMT From: Ed Maste <emaste@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 6605a2a1634f - releng/13.0 - Teach DTrace that unaligned accesses are OK on aarch64, not just x86. Message-ID: <202103311607.12VG7F8n097867@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch releng/13.0 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=6605a2a1634f5db4b9aeed33d0077399185992c9 commit 6605a2a1634f5db4b9aeed33d0077399185992c9 Author: Robert Watson <rwatson@FreeBSD.org> AuthorDate: 2021-03-22 01:50:00 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2021-03-31 16:05:26 +0000 Teach DTrace that unaligned accesses are OK on aarch64, not just x86. Reviewed by: andrew Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D29369 (cherry picked from commit fb581531c1a0e6f1bf5392a2e97ed39d21d6e1fd) (cherry picked from commit ba08ba5226ff8551ea3926ce49b8604b71c9cabf) --- sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c index b212185a4578..ca6fa5481856 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c +++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c @@ -475,7 +475,7 @@ static kmutex_t dtrace_errlock; #define DTRACE_STORE(type, tomax, offset, what) \ *((type *)((uintptr_t)(tomax) + (uintptr_t)offset)) = (type)(what); -#ifndef __x86 +#if !defined(__x86) && !defined(__aarch64__) #define DTRACE_ALIGNCHECK(addr, size, flags) \ if (addr & (size - 1)) { \ *flags |= CPU_DTRACE_BADALIGN; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103311607.12VG7F8n097867>