Allow QNX IPC resource manager to be launched without starting any core
authorvwan@ti.com <vwan@ti.com>
Mon, 13 Oct 2014 22:53:01 +0000 (15:53 -0700)
committerRobert Tivy <rtivy@ti.com>
Tue, 14 Oct 2014 20:43:42 +0000 (13:43 -0700)
This commit allows the resource manager to be launched without specifying
any core in its core list. This is useful now that cores can be started
at a subsequent time.

Signed-off-by: VW <vwan@ti.com>
qnx/src/ipc3x_dev/ti/syslink/build/Qnx/resmgr/syslink_main.c

index 4aaf595bca427c714830407b93ee5cfa6872ec13..438aca78515014877893e904ac75bb0f40721645 100644 (file)
@@ -200,7 +200,7 @@ static int runSlave(syslink_dev_t *dev, uint16_t procId,
     if (status < 0) {
         GT_setFailureReason(curTrace,
                             GT_4CLASS,
-                            "init_ipc",
+                            "runSlave",
                             status,
                             "ProcMgr_attach failed!");
         goto procmgrattach_fail;
@@ -214,7 +214,7 @@ static int runSlave(syslink_dev_t *dev, uint16_t procId,
         if (status < 0) {
             GT_setFailureReason(curTrace,
                                 GT_4CLASS,
-                                "init_ipc",
+                                "runSlave",
                                 status,
                                 "ProcMgr_load failed!");
             goto procmgrload_fail;
@@ -225,7 +225,7 @@ static int runSlave(syslink_dev_t *dev, uint16_t procId,
     if (status < 0) {
         GT_setFailureReason(curTrace,
                              GT_4CLASS,
-                             "init_ipc",
+                             "runSlave",
                              status,
                              "Ipc_attach failed!");
         goto ipcattach_fail;
@@ -242,7 +242,7 @@ static int runSlave(syslink_dev_t *dev, uint16_t procId,
         if (status < 0) {
             GT_setFailureReason(curTrace,
                                 GT_4CLASS,
-                                "init_ipc",
+                                "runSlave",
                                 status,
                                 "ProcMgr_start failed!");
             goto procmgrstart_fail;
@@ -1275,7 +1275,6 @@ int init_ipc(syslink_dev_t * dev, syslink_firmware_info * firmware, bool recover
     int status = 0;
     Ipc_Config iCfg;
     OsalThread_Params threadParams;
-    ProcMgr_AttachParams attachParams;
     UInt16 procId;
     int i;
 
@@ -1657,14 +1656,6 @@ int main(int argc, char *argv[])
         syslink_firmware[syslink_num_cores++].firmware = argv [optind+1];
     }
 
-    /* Get the name of the binary from the input args */
-    if (!syslink_num_cores) {
-        fprintf(stderr, "At least one core_id and executable must be "\
-            "specified");
-        printUsage(argv[0]);
-        return (error);
-    }
-
     /* Validate hib_enable args */
     if (hib_enable == -1) {
         fprintf (stderr, "invalid hibernation enable value\n");