[U-Boot] [PATCH] mmc: dcache: Replace ext_csd buffer with cache aligned one
Albert ARIBAUD
albert.u.boot at aribaud.net
Fri Aug 12 11:50:13 CEST 2011
Hi Lukasz,
On 12/08/2011 11:35, Lukasz Majewski wrote:
> Hi Albert,
>
> On Fri, 12 Aug 2011 11:07:57 +0200
> Albert ARIBAUD<albert.u.boot at aribaud.net> wrote:
>
>> I know it is in GNU LIBC; I also know it is not (yet...) in U-Boot's
>> own C library. What about the most common toolchains used on U-Boot?
>
> The memalign is already defined in the u-boot tree (common/dlmalloc.c).
Apologies: seems like I missed it.
> The dlmalloc.o is also built during compilation and it is linked to the
> final u-boot binary.
>
> I'm using the CodeSourgery's ARM toolchain (gcc version 4.4.1 (Sourcery
> G++ Lite 2009q3-68)).
> I can test it with (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)) as
> well.
>
> Moreover I can try to install OSELAS.Toolchain (PTXdist ones) and test
> this as well with those toolchains. There are several one available for
> armv5/armv6/armv7.
>
> Initially I was planning to use calloc/malloc from ./common/dlmalloc.c
> but it is clearly stated, that it is using 8 bytes alignment (which is
> hardwired in this implementation).
>
> I will keep you informed about the tests results.
Thanks a lot! If no toolchain gives issues, then I guess the use of
memalign() for dynamic buffers can be considered the way to go.
Amicalement,
--
Albert.
More information about the U-Boot
mailing list