| 1805ce69 | 25-Mar-2021 |
Leandro Lupori <[email protected]> |
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
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 <[email protected]> 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 2f561284033c0f53d0911baf9056078e6026a278)
show more ...
|
| e16c1865 | 15-Jan-2020 |
Leandro Lupori <[email protected]> |
[PPC64] memcpy/memmove/bcopy optimization
For copies shorter than 512 bytes, the data is copied using plain ld/std instructions. For 512 bytes or more, the copy is done in 3 phases:
Phase 1: copy f
[PPC64] memcpy/memmove/bcopy optimization
For copies shorter than 512 bytes, the data is copied using plain ld/std instructions. For 512 bytes or more, the copy is done in 3 phases:
Phase 1: copy from the src buffer until it's aligned at a 16-byte boundary Phase 2: copy as many aligned 64-byte blocks from the src buffer as possible Phase 3: copy the remaining data, if any
In phase 2, this code uses VSX instructions when available. Otherwise, it uses ldx/stdx.
Submitted by: Luis Pires <lffpires_ruabrasil.org> (original version) Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D15118
show more ...
|
| 181e3500 | 15-Jan-2020 |
Leandro Lupori <[email protected]> |
[PPC64] strncpy optimization
Assembly optimization of strncpy for PowerPC64, using double words instead of bytes to copy strings.
Submitted by: Leonardo Bianconi <leonardo.bianconi_eldorado.org.br>
[PPC64] strncpy optimization
Assembly optimization of strncpy for PowerPC64, using double words instead of bytes to copy strings.
Submitted by: Leonardo Bianconi <leonardo.bianconi_eldorado.org.br> (original version) Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D15369
show more ...
|