From 6e97fad00676ce24352a3a5f51152fe02c4c206d Mon Sep 17 00:00:00 2001 From: scw Date: Mon, 8 Dec 2003 16:15:31 +0000 Subject: [PATCH] Set up a temporary 1MB mapping to cover the SDRAM controller's registers. --- sys/arch/evbarm/ixdp425/ixdp425_start.S | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/sys/arch/evbarm/ixdp425/ixdp425_start.S b/sys/arch/evbarm/ixdp425/ixdp425_start.S index e30a078ef3de..6f1c6cfc48e1 100644 --- a/sys/arch/evbarm/ixdp425/ixdp425_start.S +++ b/sys/arch/evbarm/ixdp425/ixdp425_start.S @@ -1,4 +1,4 @@ -/* $NetBSD: ixdp425_start.S,v 1.2 2003/05/24 01:59:32 ichiro Exp $ */ +/* $NetBSD: ixdp425_start.S,v 1.3 2003/12/08 16:15:31 scw Exp $ */ /* * Copyright (c) 2003 @@ -124,6 +124,20 @@ Lunmapped: orr r3, r3, #(L1_TYPE_S) str r3, [r0] + /* + * Step 4: Map VA 0xf0200000->0xf0300000 to PA 0xcc000000->0xcc100000. + */ + adr r0, Ltable /* r0 = &l1table */ + ldr r0, [r0] + + add r0, r0, #(0xf00 * 4) /* offset to 0xf0200000 */ + add r0, r0, #(0x002 * 4) + mov r3, #0xcc000000 + add r3, r3, #0x00100000 + orr r3, r3, #(L1_S_AP(AP_KRW)) + orr r3, r3, #(L1_TYPE_S) + str r3, [r0] + /* OK! Page table is set up. Give it to the CPU. */ adr r0, Ltable ldr r0, [r0]