]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/netapi.git/commitdiff
Fix prototype of hplib_checkMallocArea, cleanup, update version
authorTinku Mannan <tmannan@ti.com>
Thu, 22 May 2014 19:02:35 +0000 (15:02 -0400)
committerTinku Mannan <tmannan@ti.com>
Thu, 22 May 2014 19:28:12 +0000 (15:28 -0400)
ti/runtime/hplib/hplib_ver.h
ti/runtime/hplib/src/hplib_util.c
ti/runtime/hplib/src/hplib_vm.c

index ccc9fce54c1bbb9cafa1e383154092483424448f..e25d8265ccdce260a477ff690b5ca23514564845 100755 (executable)
@@ -55,14 +55,14 @@ extern "C" {
  *      format:
  *              0xAABBCCDD -> Arch (AA); API Changes (BB); Major (CC); Minor (DD)
  */
-#define HPLIB_VERSION_ID                   (0x01000007)
+#define HPLIB_VERSION_ID                   (0x01010001)
 
 /**
  * @def HPLIB_VERSION_STR
  *      This is the version string which describes the HPLIB along with the
  *      date and build information.
  */
-#define HPLIB_VERSION_STR      "HPLIB Revision: 01.00.00.07"
+#define HPLIB_VERSION_STR      "HPLIB Revision: 01.01.00.01"
 
 /**
  *  @ingroup hplib_gen_functions
index 48d64db40c2ac740e201e6ed90c05dfd87816e78..751a5c6611b56ba6d1e4048a0d8efaa001d1fedf 100755 (executable)
@@ -177,7 +177,6 @@ hplib_RetValue hplib_utilSetupThread(int threadId,
     {
         hplib_utilModOpen();
     }
-    printf("hplib_utilSetupThread (thread: %d): hplib_mod_fd %d\n", threadId, hplib_mod_fd);
     if (sched_setaffinity( gettid(), sizeof( cpu_set_t ), pSet ))
     {
         return hplib_FAILURE;
index 68fb396daa5ffb957a629a3a598566d63fd1422c..9a07a28fc537fea872275465cef8d228a4e96a23 100755 (executable)
@@ -327,7 +327,7 @@ void hplib_vmTeardown(void)
     close(dev_mem_fd);
 }
 
-hplib_RetValue hplib_checkMallocArea(pool_id)
+hplib_RetValue hplib_checkMallocArea(int pool_id)
 {
     hplib_VirtMemPoolheader_T *poolHdr;
     if (pool_id > HPLIB_MAX_MEM_POOLS)
@@ -400,15 +400,8 @@ hplib_RetValue hplib_vmInit(hplib_virtualAddrInfo_T *hplib_vmaddr,
                strerror(errno));
         return HPLIB_FALSE;
     }
-#if 0
-    if (CMEM_init() != 0)
-    {
-        hplib_Log("hplib_vmInit: Failed to open cmem.ko\n");
-        return HPLIB_FALSE;
-    }
-#endif
-    /* Open kernel module since we need it for PA to VA mappings */
 
+    /* Open kernel module since we need it for PA to VA mappings */
     if (hplib_utilModOpen() == -1)
     {
         hplib_Log("hplib_vmInit:: failed to open /dev/netapi: '%s'\n", strerror(errno));