Skip to content

Commit

Permalink
Teach DTrace that unaligned accesses are OK on aarch64, not just x86.
Browse files Browse the repository at this point in the history
MFC after:	3 days
Reviewed:	andrew
Differential Revision:	https://reviews.freebsd.org/D29369
  • Loading branch information
rwatson committed Mar 22, 2021
1 parent 599fb1d commit fb58153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit fb58153

Please sign in to comment.