[U-Boot] [PATCH v2 7/7] part_efi: dcache: allocate cacheline aligned buffers

Wolfgang Denk wd at denx.de
Thu Oct 6 20:45:34 CEST 2011


Dear Anton Staaf,

In message <1317763491-7274-8-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
"Go to Heaven for the climate, Hell for the company."    - Mark Twain


More information about the U-Boot mailing list