HomeFreeBSD

[PowerPC64] Enforce natural alignment in bcopy

Description

[PowerPC64] Enforce natural alignment in bcopy

POWER architecture CPUs (Book-S) require natural alignment for
cache-inhibited storage accesses. Since we can't know the caching model
for a page ahead of time, always enforce natural alignment in bcopy.
This fixes a SIGBUS when calling the function with misaligned pointers
on POWER7.

Submitted by: Bruno Larsen <bruno.larsen@eldorado.org.br>
Reviewed by: luporl, bdragon (IRC)
MFC after: 1 week
Sponsored by: Eldorado Research Institute (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D28776

Details

Provenance
luporlAuthored on Mar 25 2021, 2:54 PM
Reviewer
luporl
Differential Revision
D28776: powerpc/powerpc64: Enforce natural alignment in bcopy
Parents
rG4e38478c595a: ipoib: Fix incorrectly computed IPOIB_CM_RX_SG value.
Branches
Unknown
Tags
Unknown