From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Fri, 12 Aug 2011 11:07:57 +0200 Subject: [U-Boot] [PATCH] mmc: dcache: Replace ext_csd buffer with cache aligned one In-Reply-To: <1313137527-8744-1-git-send-email-l.majewski@samsung.com> References: <1313137527-8744-1-git-send-email-l.majewski@samsung.com> Message-ID: <4E44ED6D.9040909@aribaud.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.