]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/commitdiff
OMAP5 QNX: Changed ipc.c to avoid calling GateMP since it is not yet supported
authorvwan@ti.com <vwan@ti.com>
Fri, 30 Aug 2013 01:36:51 +0000 (18:36 -0700)
committerChris Ring <cring@ti.com>
Fri, 30 Aug 2013 02:24:39 +0000 (19:24 -0700)
Signed-off-by: VW <vwan@ti.com>
qnx/Makefile
qnx/src/api/Ipc.c
qnx/src/api/common.mk

index d78f3ff46d92e50423bf8102c467830f305a4825..9fdf1ca55e9a59f33dc22773d1305860a7291f2c 100644 (file)
@@ -39,7 +39,7 @@ endif
 all:  utils ipc3x_dev libs tests
 
 libs: ipc3x_dev
-       @cd src/api; make
+       @cd src/api; make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM)
        @cd src/mm; make
 
 utils:
index b6cd3dfc914cb6367f10fb01333412db4233b32f..23d50dbf035c0177d52a986db96886d8cb2519bd 100644 (file)
@@ -123,6 +123,7 @@ Int Ipc_start (Void)
     }
 
     /* Start GateMP only if it is setup in the resource manager */
+#if defined(GATEMP_SUPPORT)
     if (GateMP_isSetup()) {
         status = GateHWSpinlock_start();
         if (status < 0) {
@@ -141,16 +142,17 @@ Int Ipc_start (Void)
             }
         }
     }
-
+#endif
     /* Success */
     goto exit;
-
+#if defined(GATEMP_SUPPORT)
 gatempstart_fail:
     GateHWSpinlock_stop();
 gatehwspinlockstart_fail:
     for (rprocId = rprocId - 1; (rprocId > 0) && (status >= 0); rprocId--) {
        MessageQ_detach(rprocId);
     }
+#endif
 messageqattach_fail:
     MessageQ_destroy();
     NameServer_destroy();
@@ -167,7 +169,7 @@ Int Ipc_stop (Void)
 {
     Int32             status = Ipc_S_SUCCESS;
     UInt16            rprocId;
-
+#if defined(GATEMP_SUPPORT)
     if (GateMP_isSetup()) {
         /* Stop GateMP */
         status = GateMP_stop();
@@ -185,7 +187,7 @@ Int Ipc_stop (Void)
             goto exit;
         }
     }
-
+#endif
     /* Now detach from all remote processors, assuming they are up. */
     for (rprocId = 0;
          (rprocId < MultiProc_getNumProcessors()) && (status >= 0);
index b5db8586d66d4e89ba09942f4efe8f2c0be3de3d..ddcfc748e36cf0589ab3f0b0efeff6f989e80afe 100644 (file)
@@ -45,6 +45,10 @@ INSTALLDIR = /dev/null
 
 CCOPTS += -DSYSLINK_BUILDOS_QNX
 
+ifeq ("$(SYSLINK_PLATFORM)", "vayu")
+CCOPTS += -DGATEMP_SUPPORT
+endif
+
 # source path
 EXTRA_SRCVPATH += \
        $(IPC_REPO)/qnx/src/api \