]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/cppi-lld.git/commitdiff
fix non portable code
authorJohn Dowdal <jdowdal@ti.com>
Sat, 27 Apr 2013 00:40:11 +0000 (20:40 -0400)
committerJohn Dowdal <jdowdal@ti.com>
Sat, 27 Apr 2013 00:40:11 +0000 (20:40 -0400)
test/src/cppi_test.c

index cca2d5c9ca98167aec1fa0e4eed63373a40faf29..52ccea698649702f087a1ff6de059d2c774f312c 100755 (executable)
@@ -184,7 +184,11 @@ void queue_divert_and_check (Qmss_QueueHnd src, Qmss_QueueHnd dst)
 \r
     if ((result = Qmss_queueDivert (src, dst, Qmss_Location_TAIL)) != QMSS_SOK)\r
     {\r
-        UInt32 corenum = CSL_chipReadReg(CSL_CHIP_DNUM); \r
+#ifndef __LINUX_USER_SPACE\r
+        uint32_t corenum = CSL_chipReadReg(CSL_CHIP_DNUM); \r
+#else\r
+        uint32_t corenum = 0;\r
+#endif\r
         errorCount++;\r
         System_printf("core %d: queue divert from %d to %d failed: %d\n", corenum, src, dst, result);\r
     }\r