summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2005-11-09 03:20:13 +0000
committerTill Straumann <strauman@slac.stanford.edu>2005-11-09 03:20:13 +0000
commitdad43ef2eb0c892c38795f30751cc7ffa5c1424f (patch)
tree0159a1ce23b6b0b08684bb30e31e50e6532852ad /c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
parent2005-11-08 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-dad43ef2eb0c892c38795f30751cc7ffa5c1424f.tar.bz2
2005-11-08 Till Straumann <strauman@slac.stanford.edu>
PR 845/bsps * startup/bspstart.c, start/start.S: setup BATs prior to attempting any device access - missing BAT mappings were probably the reason for the MMU malfunction assumption. Enabled MSR_DR.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/powerpc/shared/startup/bspstart.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c b/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
index 5b5b3c15a6..a6be69a451 100644
--- a/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
@@ -262,9 +262,32 @@ void bsp_start( void )
myCpu = get_ppc_cpu_type();
myCpuRevision = get_ppc_cpu_revision();
+ /*
+ * Init MMU block address translation to enable hardware access
+ */
+
+#if !defined(mvme2100)
+ /*
+ * PC legacy IO space used for inb/outb and all PC compatible hardware
+ */
+ setdbat(1, _IO_BASE, _IO_BASE, 0x10000000, IO_PAGE);
+#endif
+
+ /*
+ * PCI devices memory area. Needed to access OpenPIC features
+ * provided by the Raven
+ *
+ * T. Straumann: give more PCI address space
+ */
+ setdbat(2, PCI_MEM_BASE, PCI_MEM_BASE, 0x10000000, IO_PAGE);
+
+ /*
+ * Must have access to OpenPIC PCI ACK registers provided by the Raven
+ */
+ setdbat(3, 0xf0000000, 0xf0000000, 0x10000000, IO_PAGE);
+
#if defined(mvme2100)
EUMBBAR = get_eumbbar();
- { unsigned v = 0x3000 ; _CPU_MSR_SET(v); }
#endif
/*
@@ -323,29 +346,6 @@ void bsp_start( void )
*/
initialize_exceptions();
- /*
- * Init MMU block address translation to enable hardware access
- */
-#if !defined(mvme2100)
- /*
- * PC legacy IO space used for inb/outb and all PC compatible hardware
- */
- setdbat(1, _IO_BASE, _IO_BASE, 0x10000000, IO_PAGE);
-#endif
-
- /*
- * PCI devices memory area. Needed to access OpenPIC features
- * provided by the Raven
- *
- * T. Straumann: give more PCI address space
- */
- setdbat(2, PCI_MEM_BASE, PCI_MEM_BASE, 0x10000000, IO_PAGE);
-
- /*
- * Must have access to OpenPIC PCI ACK registers provided by the Raven
- */
- setdbat(3, 0xf0000000, 0xf0000000, 0x10000000, IO_PAGE);
-
select_console(CONSOLE_LOG);
/*