[rtems commit] mpc83xx: Fix local access window 1 configuration

Sebastian Huber sebh at rtems.org
Thu Mar 14 09:51:47 UTC 2013


Module:    rtems
Branch:    master
Commit:    9e256213b86c25ef5cb5c999ad523eff5a4a6555
Changeset: http://git.rtems.org/rtems/commit/?id=9e256213b86c25ef5cb5c999ad523eff5a4a6555

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Mar 11 17:44:19 2013 +0100

mpc83xx: Fix local access window 1 configuration

---

 c/src/lib/libbsp/powerpc/gen83xx/start/start.S |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/gen83xx/start/start.S b/c/src/lib/libbsp/powerpc/gen83xx/start/start.S
index df06d29..2c67bf8 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/start/start.S
+++ b/c/src/lib/libbsp/powerpc/gen83xx/start/start.S
@@ -138,12 +138,22 @@ start_code_in_rom:
 #ifdef LBLAWAR0_VAL
 	SET_IMM_REGW r31,r30,LBLAWAR0_OFF,LBLAWAR0_VAL
 #endif
+
+/*
+ * Local access window 1 is a special case since we used it for a temporary
+ * mapping.  If we do not use it then restore the reset value.
+ */
 #ifdef LBLAWBAR1_VAL
 	SET_IMM_REGW r31,r30,LBLAWBAR1_OFF,LBLAWBAR1_VAL
+#else
+	SET_IMM_REGW r31,r30,LBLAWBAR1_OFF,0
 #endif
 #ifdef LBLAWAR1_VAL
 	SET_IMM_REGW r31,r30,LBLAWAR1_OFF,LBLAWAR1_VAL
+#else
+	SET_IMM_REGW r31,r30,LBLAWAR1_OFF,0
 #endif
+
 #ifdef LBLAWBAR2_VAL
 	SET_IMM_REGW r31,r30,LBLAWBAR2_OFF,LBLAWBAR2_VAL
 #endif




More information about the vc mailing list