]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: fit: Allocate buffers aligned to cache line size
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Tue, 14 Jun 2022 14:12:00 +0000 (16:12 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 14 Sep 2022 19:23:03 +0000 (15:23 -0400)
commit77253c50ab5910bf72e1e868c86940c5a2bc7bb9
treebd83cad81c8fd5ec99ebdfecca2ef7f2ccf70ba2
parentc0facda1976f7990ad9edbaecb6802369867c1d6
spl: fit: Allocate buffers aligned to cache line size

Allocate memory for buffers at a cache-line boundary to avoid
misaligned buffer address for subsequent reads. This avoids an
additional sector-based memory copy in the fat file system driver:

FAT: Misaligned buffer address (...)

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
common/spl/spl_fit.c