[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:07:57 CEST 2011


Hi Lukasz,

On 12/08/2011 10:25, Lukasz Majewski wrote:

> +	char *ext_csd = memalign(get_dcache_line_size(), mmc->read_bl_len);

Since this is the first effort for aligning buffers on the caller side, 
I'd like to make sure the method can be, and is, standardized across all 
changes.

So before standardizing on memalign() for dynamically allocating aligned 
buffers, I want to to be sure that the use of this function is portable.

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?

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list