summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 47a6a62)
raw | patch | inline | side by side (parent: 47a6a62)
author | vwan@ti.com <vwan@ti.com> | |
Fri, 30 Aug 2013 01:36:51 +0000 (18:36 -0700) | ||
committer | Chris Ring <cring@ti.com> | |
Fri, 30 Aug 2013 02:24:39 +0000 (19:24 -0700) |
Signed-off-by: VW <vwan@ti.com>
qnx/Makefile | patch | blob | history | |
qnx/src/api/Ipc.c | patch | blob | history | |
qnx/src/api/common.mk | patch | blob | history |
diff --git a/qnx/Makefile b/qnx/Makefile
index d78f3ff46d92e50423bf8102c467830f305a4825..9fdf1ca55e9a59f33dc22773d1305860a7291f2c 100644 (file)
--- a/qnx/Makefile
+++ b/qnx/Makefile
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:
diff --git a/qnx/src/api/Ipc.c b/qnx/src/api/Ipc.c
index b6cd3dfc914cb6367f10fb01333412db4233b32f..23d50dbf035c0177d52a986db96886d8cb2519bd 100644 (file)
--- a/qnx/src/api/Ipc.c
+++ b/qnx/src/api/Ipc.c
}
/* Start GateMP only if it is setup in the resource manager */
+#if defined(GATEMP_SUPPORT)
if (GateMP_isSetup()) {
status = GateHWSpinlock_start();
if (status < 0) {
}
}
}
-
+#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();
{
Int32 status = Ipc_S_SUCCESS;
UInt16 rprocId;
-
+#if defined(GATEMP_SUPPORT)
if (GateMP_isSetup()) {
/* Stop GateMP */
status = GateMP_stop();
goto exit;
}
}
-
+#endif
/* Now detach from all remote processors, assuming they are up. */
for (rprocId = 0;
(rprocId < MultiProc_getNumProcessors()) && (status >= 0);
diff --git a/qnx/src/api/common.mk b/qnx/src/api/common.mk
index b5db8586d66d4e89ba09942f4efe8f2c0be3de3d..ddcfc748e36cf0589ab3f0b0efeff6f989e80afe 100644 (file)
--- a/qnx/src/api/common.mk
+++ b/qnx/src/api/common.mk
CCOPTS += -DSYSLINK_BUILDOS_QNX
+ifeq ("$(SYSLINK_PLATFORM)", "vayu")
+CCOPTS += -DGATEMP_SUPPORT
+endif
+
# source path
EXTRA_SRCVPATH += \
$(IPC_REPO)/qnx/src/api \