]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/rm-lld.git/blobdiff - test/k2h/armv7/linux/rm_dsp_client_test.c
Changes to ARM-DSP test project based on IPC update
[keystone-rtos/rm-lld.git] / test / k2h / armv7 / linux / rm_dsp_client_test.c
index 4094064451b27ad55b3aebdb123d7b72409ddb6d..19d72b8e2b86579eb9f341378661c6fba3bda39e 100644 (file)
@@ -221,14 +221,16 @@ int main (int argc, char ** argv)
            printf("\tDefaults: ProcId: %d\n", PROC_ID_DEFAULT);
            exit(0);
     }
+
+    status = Ipc_start();
+
     if (procId >= MultiProc_getNumProcessors()) {
         printf("ProcId must be less than %d\n", MultiProc_getNumProcessors());
+        Ipc_stop();
         exit(0);
     }
     printf("Using procId : %d\n", procId);
 
-    status = Ipc_start();
-
     if (status >= 0) {
         rmServerExchange_execute(procId);
         Ipc_stop();