From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1O7OXj-0008Dg-QC for barebox@lists.infradead.org; Thu, 29 Apr 2010 07:52:23 +0000 From: Sascha Hauer Date: Thu, 29 Apr 2010 09:52:00 +0200 Message-Id: <1272527535-17527-3-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1272527535-17527-1-git-send-email-s.hauer@pengutronix.de> References: <1272527535-17527-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 02/17] ARM: use memalign in dma_alloc_coherent to assure alignment To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- arch/arm/cpu/mmu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c index 66ee987..5bf31c0 100644 --- a/arch/arm/cpu/mmu.c +++ b/arch/arm/cpu/mmu.c @@ -99,7 +99,7 @@ void *dma_alloc_coherent(size_t size) { void *mem; - mem = malloc(size); + mem = memalign(4096, size); if (mem) return mem + dma_coherent_offset; -- 1.7.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox