]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/usr/Qnx/GateMPDrv.c
Prevent SR0 owner from being stopped if host process is still using GateMP
[ipc/ipcdev.git] / qnx / src / ipc3x_dev / ti / syslink / ipc / hlos / usr / Qnx / GateMPDrv.c
index d750a7156688f102458d7a40ae79520906f28cda..043bae090da2422e19947f70658903c58f74dcb0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Texas Instruments Incorporated - http://www.ti.com
+ * Copyright (c) 2013-2014 Texas Instruments Incorporated - http://www.ti.com
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -146,6 +146,17 @@ Int GateMPDrv_ioctl(UInt32 cmd, Ptr args)
       }
       break;
 
+      case CMD_GATEMP_STOP:
+      {
+          osStatus = devctl(IpcDrv_handle, DCMD_GATEMP_STOP, cargs,
+              sizeof(GateMPDrv_CmdArgs), NULL);
+
+          if (osStatus != 0) {
+              status = GateMP_E_OSFAILURE;
+          }
+      }
+      break;
+
       case CMD_GATEMP_ISSETUP:
       {
           osStatus = devctl(IpcDrv_handle, DCMD_GATEMP_ISSETUP, cargs,