]> git.sur5r.net Git - u-boot/commit
part_efi: dcache: allocate cacheline aligned buffers
authorAnton staaf <robotboy@chromium.org>
Wed, 12 Oct 2011 13:56:04 +0000 (13:56 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 25 Oct 2011 07:26:34 +0000 (09:26 +0200)
commitf75dd584cdfe29dfdcfd424bb237b9238cfb8fe4
tree64c18b237725fde2849ccf12c3b96e2a4d815a12
parenta1969923c90c64ac55f80f14a7ca3ea2c766d079
part_efi: dcache: allocate cacheline aligned buffers

Currently part_efi.c allocates buffers for the gpt_header, the
legacy_mbr, and the pte (partition table entry) that may be
incorrectly aligned for DMA operations.

This patch uses ALLOC_CACHE_ALIGN_BUFFER for the stack allocated
buffers and memalign to replace the malloc of the pte.

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Acked-by: Mike Frysinger <vapier@gentoo.org>
disk/part_efi.c