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 canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QoVfp-0004ql-Rj for barebox@lists.infradead.org; Wed, 03 Aug 2011 07:15:26 +0000 From: Sascha Hauer Date: Wed, 3 Aug 2011 09:15:00 +0200 Message-Id: <1312355701-18867-4-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1312355701-18867-1-git-send-email-s.hauer@pengutronix.de> References: <1312355701-18867-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 3/4] ARM mmu: Fix arm_create_pte To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- arch/arm/cpu/mmu.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c index bf931b4..1f62d61 100644 --- a/arch/arm/cpu/mmu.c +++ b/arch/arm/cpu/mmu.c @@ -67,8 +67,10 @@ static u32 *arm_create_pte(unsigned long virt) ttb[virt] = (unsigned long)table | PMD_TYPE_TABLE; - for (i = 0; i < 256; i++) + for (i = 0; i < 256; i++) { table[i] = virt | PTE_TYPE_SMALL | PTE_FLAGS_UNCACHED; + virt += PAGE_SIZE; + } return table; } -- 1.7.5.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox