[rtems commit] bsp/qoriq: Add missing #ifdef RTEMS_SMP

Sebastian Huber sebh at rtems.org
Mon Jun 3 07:58:17 UTC 2013


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jun  3 10:03:10 2013 +0200

bsp/qoriq: Add missing #ifdef RTEMS_SMP

---

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

diff --git a/c/src/lib/libbsp/powerpc/qoriq/start/start.S b/c/src/lib/libbsp/powerpc/qoriq/start/start.S
index 7d74bd1..97ea28b 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/start/start.S
+++ b/c/src/lib/libbsp/powerpc/qoriq/start/start.S
@@ -20,6 +20,8 @@
  * http://www.rtems.com/license/LICENSE.
  */
 
+#include <rtems/asm.h>
+
 #include <bspopts.h>
 
 #include <libcpu/powerpc-utility.h>
@@ -32,7 +34,9 @@
 #define UBOOT_BOARD_INFO r15
 
 	.globl _start
+#ifdef RTEMS_SMP
 	.globl _start_core_1
+#endif
 	.globl bsp_exc_vector_base
 
 	.section ".bsp_start_text", "ax"
@@ -170,6 +174,7 @@ copy:
 	beqlr
 	b	memcpy
 
+#ifdef RTEMS_SMP
 _start_core_1:
 
 	/* Reset time base */
@@ -218,6 +223,7 @@ _start_core_1:
 	b	qoriq_secondary_cpu_initialize
 
 	b	twiddle
+#endif /* RTEMS_SMP */
 
 	/* Exception vector prologues area */
 	.section ".bsp_start_text", "ax"




More information about the vc mailing list