mirror of
https://github.com/opnsense/src.git
synced 2026-05-16 11:09:35 -04:00
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
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| bcopy.S | ||
| bcopy_resolver.c | ||
| bcopy_vsx.S | ||
| Makefile.inc | ||
| memcpy.S | ||
| memcpy_resolver.c | ||
| memcpy_vsx.S | ||
| memmove.S | ||
| memmove_resolver.c | ||
| memmove_vsx.S | ||
| strcpy.c | ||
| strcpy_arch_2_05.S | ||
| strcpy_resolver.c | ||
| strncpy.c | ||
| strncpy_arch_2_05.S | ||
| strncpy_resolver.c | ||