git: 6605a2a1634f - releng/13.0 - Teach DTrace that unaligned accesses are OK on aarch64, not just x86.
Ed Maste
emaste at FreeBSD.org
Wed Mar 31 16:07:15 UTC 2021
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 at FreeBSD.org>
AuthorDate: 2021-03-22 01:50:00 +0000
Commit: Ed Maste <emaste at 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; \
More information about the dev-commits-src-branches
mailing list