Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Mar 2021 13:18:55 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: ba08ba5226ff - stable/13 - Teach DTrace that unaligned accesses are OK on aarch64, not just x86.
Message-ID:  <202103251318.12PDItt0016830@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=ba08ba5226ff8551ea3926ce49b8604b71c9cabf

commit ba08ba5226ff8551ea3926ce49b8604b71c9cabf
Author:     Robert Watson <rwatson@FreeBSD.org>
AuthorDate: 2021-03-22 01:50:00 +0000
Commit:     Ed Maste <emaste@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;				\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103251318.12PDItt0016830>