git: ba08ba5226ff - stable/13 - Teach DTrace that unaligned accesses are OK on aarch64, not just x86.
Ed Maste
emaste at FreeBSD.org
Thu Mar 25 13:18:55 UTC 2021
The branch stable/13 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=ba08ba5226ff8551ea3926ce49b8604b71c9cabf
commit ba08ba5226ff8551ea3926ce49b8604b71c9cabf
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-25 13:17:38 +0000
Teach DTrace that unaligned accesses are OK on aarch64, not just x86.
MFC after: 3 days
Reviewed: andrew
Differential Revision: https://reviews.freebsd.org/D29369
---
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-all
mailing list