Browse Source

riscv64: fix DB_THREAD_SELF, fixes 4 testsuite failures

Waldemar Brodkorb 4 years ago
parent
commit
4bae9977da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libpthread/nptl/sysdeps/riscv64/tls.h

+ 1 - 1
libpthread/nptl/sysdeps/riscv64/tls.h

@@ -160,7 +160,7 @@ register tcbhead_t *__thread_self __asm__("tp");
 
 /* Magic for libthread_db to know how to do THREAD_SELF.  */
 # define DB_THREAD_SELF \
-  CONST_THREAD_AREA (32, sizeof (struct pthread))
+  CONST_THREAD_AREA (64, sizeof (struct pthread))
 
 /* Access to data in the thread descriptor is easy.  */
 #define THREAD_GETMEM(descr, member) \