]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Address minor issues in Julian's last review.
authorZhi-Gang Liu <zliu@tilera.com>
Wed, 15 Apr 2015 02:33:09 +0000 (02:33 +0000)
committerZhi-Gang Liu <zliu@tilera.com>
Wed, 15 Apr 2015 02:33:09 +0000 (02:33 +0000)
For TILEGX only.
By: Zhi-Gang Liu

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15094

coregrind/m_debuglog.c
coregrind/m_libcassert.c

index 76adccce42829e12926d0e3e00b8f4da59e93a90..5c2c96cafdd026fe27b8cb0bb884e2ddefd6256f 100644 (file)
@@ -508,13 +508,15 @@ static UInt local_sys_getpid ( void )
       : "$2" );
    return (UInt)(__res);
 }
+
 #elif defined(VGP_tilegx_linux)
+
 static UInt local_sys_write_stderr ( const HChar* buf, Int n )
 {
    volatile Long block[2];
    block[0] = (Long)buf;
    block[1] = n;
-   ULong __res = 0;
+   Long __res = 0;
    __asm__ volatile (
       "movei  r0,  2    \n\t"    /* stderr */
       "move   r1,  %1   \n\t"    /* buf */
index 365b50377afd1d9b7e39bb965eb1bddc674f841e..2f8026c74b68c7c4d8e010b830fda0285f268d64 100644 (file)
       }
 #elif defined(VGP_tilegx_linux)
 #  define GET_STARTREGS(srP)                              \
-      { UInt pc, sp, fp, ra;                              \
+      { ULong pc, sp, fp, ra;                              \
         __asm__ __volatile__(                             \
           "move r8, lr \n"                                \
           "jal 0f \n"                                     \