Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Support for initializing ARM10 processors...



details:   https://anonhg.NetBSD.org/src/rev/024783df6c55
branches:  trunk
changeset: 551381:024783df6c55
user:      rearnsha <rearnsha%NetBSD.org@localhost>
date:      Sat Sep 06 09:44:10 2003 +0000

description:
Support for initializing ARM10 processors in write-through mode.

diffstat:

 sys/arch/arm/arm32/pmap.c |  26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 859811bd2608 -r 024783df6c55 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Sat Sep 06 09:43:34 2003 +0000
+++ b/sys/arch/arm/arm32/pmap.c Sat Sep 06 09:44:10 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.137 2003/06/23 11:01:07 martin Exp $        */
+/*     $NetBSD: pmap.c,v 1.138 2003/09/06 09:44:10 rearnsha Exp $      */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -212,7 +212,7 @@
 #include <machine/param.h>
 #include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.137 2003/06/23 11:01:07 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.138 2003/09/06 09:44:10 rearnsha Exp $");
 
 #ifdef PMAP_DEBUG
 #define        PDEBUG(_lev_,_stat_) \
@@ -4689,6 +4689,28 @@
 #endif /* CPU_ARM9 */
 #endif /* (ARM_MMU_GENERIC + ARM_MMU_SA1) != 0 */
 
+#if defined(CPU_ARM10)
+void
+pmap_pte_init_arm10(void)
+{
+
+       /*
+        * ARM10 is compatible with generic, but we want to use
+        * write-through caching for now.
+        */
+       pmap_pte_init_generic();
+
+       pte_l1_s_cache_mode = L1_S_B | L1_S_C;
+       pte_l2_l_cache_mode = L2_B | L2_C;
+       pte_l2_s_cache_mode = L2_B | L2_C;
+
+       pte_l1_s_cache_mode_pt = L1_S_C;
+       pte_l2_l_cache_mode_pt = L2_C;
+       pte_l2_s_cache_mode_pt = L2_C;
+
+}
+#endif /* CPU_ARM10 */
+
 #if ARM_MMU_SA1 == 1
 void
 pmap_pte_init_sa1(void)



Home | Main Index | Thread Index | Old Index