[U-Boot] [PATCH v3 6/6] part_efi: dcache: allocate cacheline aligned buffers

Wolfgang Denk wd at denx.de
Tue Oct 25 09:26:55 CEST 2011


Dear Anton Staaf,

In message <1318463764-28244-7-git-send-email-robotboy at chromium.org> you wrote:
> 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 at chromium.org>
> Cc: Lukasz Majewski <l.majewski at samsung.com>
> Cc: Mike Frysinger <vapier at gentoo.org>
> Cc: Albert ARIBAUD <albert.u.boot at aribaud.net>
> ---
>  disk/part_efi.c |   18 +++++++++---------
>  1 files changed, 9 insertions(+), 9 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
In the strict scientific sense we all feed on death -- even
vegetarians.
	-- Spock, "Wolf in the Fold", stardate 3615.4


More information about the U-Boot mailing list