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
This commit is contained in:
parent
599fb1d198
commit
fb581531c1
@ -475,7 +475,7 @@ static kmutex_t dtrace_errlock;
|
|||||||
#define DTRACE_STORE(type, tomax, offset, what) \
|
#define DTRACE_STORE(type, tomax, offset, what) \
|
||||||
*((type *)((uintptr_t)(tomax) + (uintptr_t)offset)) = (type)(what);
|
*((type *)((uintptr_t)(tomax) + (uintptr_t)offset)) = (type)(what);
|
||||||
|
|
||||||
#ifndef __x86
|
#if !defined(__x86) && !defined(__aarch64__)
|
||||||
#define DTRACE_ALIGNCHECK(addr, size, flags) \
|
#define DTRACE_ALIGNCHECK(addr, size, flags) \
|
||||||
if (addr & (size - 1)) { \
|
if (addr & (size - 1)) { \
|
||||||
*flags |= CPU_DTRACE_BADALIGN; \
|
*flags |= CPU_DTRACE_BADALIGN; \
|
||||||
|
Loading…
Reference in New Issue
Block a user