[U-Boot] [PATCH] mmc: dcache: Replace ext_csd buffer with cache aligned one

Lukasz Majewski l.majewski at samsung.com
Fri Aug 12 11:35:06 CEST 2011


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).

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.

-- 
Best regards,

Lukasz Majewski

Samsung Poland R&D Center
Platform Group


More information about the U-Boot mailing list