[rtems commit] bsp/t32mppc: Set PPC_PER_CPU_CONTROL_REGISTER

Sebastian Huber sebh at rtems.org
Fri Jul 28 13:05:02 UTC 2017


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jul 28 15:03:47 2017 +0200

bsp/t32mppc: Set PPC_PER_CPU_CONTROL_REGISTER

---

 c/src/lib/libbsp/powerpc/t32mppc/start/start.S | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/t32mppc/start/start.S b/c/src/lib/libbsp/powerpc/t32mppc/start/start.S
index 34e1cfac..18d16a6 100644
--- a/c/src/lib/libbsp/powerpc/t32mppc/start/start.S
+++ b/c/src/lib/libbsp/powerpc/t32mppc/start/start.S
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, 2015 embedded brains GmbH.  All rights reserved.
+ * Copyright (c) 2012, 2017 embedded brains GmbH.  All rights reserved.
  *
  *  embedded brains GmbH
  *  Dornierstr. 4
@@ -14,8 +14,8 @@
 
 #include <bspopts.h>
 
+#include <rtems/score/percpu.h>
 #include <libcpu/powerpc-utility.h>
-
 #include <bsp/vectors.h>
 
 	.globl _start
@@ -39,6 +39,10 @@ _start:
 	li	r0, 0
 	stw	r0, 0(r1)
 
+#ifdef RTEMS_SMP
+	SET_SELF_CPU_CONTROL	r3
+#endif
+
 	/* Copy fast text */
 	LWI	r3, bsp_section_fast_text_begin
 	LWI	r4, bsp_section_fast_text_load_begin



More information about the vc mailing list