[rtems commit] bsp/qoriq: Move BUCSR initialization
Sebastian Huber
sebh at rtems.org
Wed Oct 7 11:39:56 UTC 2015
Module: rtems
Branch: master
Commit: 55c8d19d7be1d22cae81f819185fbee100fd739e
Changeset: http://git.rtems.org/rtems/commit/?id=55c8d19d7be1d22cae81f819185fbee100fd739e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Oct 7 09:51:29 2015 +0200
bsp/qoriq: Move BUCSR initialization
---
c/src/lib/libbsp/powerpc/qoriq/start/start.S | 21 +++++++--------------
1 file changed, 7 insertions(+), 14 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/qoriq/start/start.S b/c/src/lib/libbsp/powerpc/qoriq/start/start.S
index 97bad1f..801fe89 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/start/start.S
+++ b/c/src/lib/libbsp/powerpc/qoriq/start/start.S
@@ -66,13 +66,6 @@ _start:
ori r0, INITIAL_MSR, MSR_IS | MSR_DS
mtmsr r0
-#ifdef QORIQ_INITIAL_BUCSR
- /* BUCSR initialization */
- LWI r0, QORIQ_INITIAL_BUCSR
- mtspr FSL_EIS_BUCSR, r0
- isync
-#endif
-
/* Initialize start stack */
LWI r1, start_stack_end - PPC_MINIMUM_STACK_FRAME_SIZE
clrrwi r1, r1, PPC_STACK_ALIGN_POWER
@@ -167,6 +160,13 @@ _start:
mtspr FSL_EIS_SPEFSCR, r0
#endif
+#ifdef QORIQ_INITIAL_BUCSR
+ /* BUCSR initialization */
+ LWI r0, QORIQ_INITIAL_BUCSR
+ mtspr FSL_EIS_BUCSR, r0
+ isync
+#endif
+
/* Set small-data anchors */
LA r2, _SDA2_BASE_
LA r13, _SDA_BASE_
@@ -217,13 +217,6 @@ _start_secondary_processor:
ori r0, INITIAL_MSR, MSR_IS | MSR_DS
mtmsr r0
-#ifdef QORIQ_INITIAL_BUCSR
- /* BUCSR initialization */
- LWI r0, QORIQ_INITIAL_BUCSR
- mtspr FSL_EIS_BUCSR, r0
- isync
-#endif
-
/* Initialize start stack */
subi r1, r1, PPC_MINIMUM_STACK_FRAME_SIZE
clrrwi r1, r1, PPC_STACK_ALIGN_POWER
More information about the vc
mailing list