[rtems commit] bsp/qoriq: Add missing isync after mtmsr
Sebastian Huber
sebh at rtems.org
Thu Oct 15 08:55:13 UTC 2015
Module: rtems
Branch: master
Commit: 2f5e3c72b1227c2607d99f6e88264814d5b2d04a
Changeset: http://git.rtems.org/rtems/commit/?id=2f5e3c72b1227c2607d99f6e88264814d5b2d04a
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Oct 15 10:45:20 2015 +0200
bsp/qoriq: Add missing isync after mtmsr
---
c/src/lib/libbsp/powerpc/qoriq/start/start.S | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/c/src/lib/libbsp/powerpc/qoriq/start/start.S b/c/src/lib/libbsp/powerpc/qoriq/start/start.S
index f43348f..ce376b0 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/start/start.S
+++ b/c/src/lib/libbsp/powerpc/qoriq/start/start.S
@@ -69,6 +69,7 @@ _start:
LWI INITIAL_MSR, QORIQ_INITIAL_MSR
ori r0, INITIAL_MSR, MSR_IS | MSR_DS
mtmsr r0
+ isync
/* Initialize start stack */
LWI r1, start_stack_end - PPC_MINIMUM_STACK_FRAME_SIZE
@@ -123,6 +124,7 @@ _start:
li r4, SCRATCH_TLB
bl qoriq_mmu_config
mtmsr INITIAL_MSR
+ isync
li r3, SCRATCH_TLB
bl qoriq_tlb1_invalidate
@@ -269,6 +271,7 @@ _start_secondary_processor:
LWI INITIAL_MSR, QORIQ_INITIAL_MSR
ori r0, INITIAL_MSR, MSR_IS | MSR_DS
mtmsr r0
+ isync
/* Initialize start stack */
subi r1, r1, PPC_MINIMUM_STACK_FRAME_SIZE
@@ -285,6 +288,7 @@ _start_secondary_processor:
li r4, SCRATCH_TLB
bl qoriq_mmu_config
mtmsr INITIAL_MSR
+ isync
li r3, SCRATCH_TLB
bl qoriq_tlb1_invalidate
More information about the vc
mailing list