]> git.baikalelectronics.ru Git - uboot.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)
commit324be74a5672dea0e1e71b7de6f7168ecc4cb12e
treebd83cad81c8fd5ec99ebdfecca2ef7f2ccf70ba2
parent130e75967cb4cedb5c8d5a72700edf3e27147ac3
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