• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂b6a2df5856c774f9469e0be4840401e295031ea9 (tree)
時間2019-11-18 01:35:28
作者Yann Sionneau <ysionneau@kalr...>
CommiterWaldemar Brodkorb

Log Message

riscv64: fix comments borrowed from or1k port

Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>

Change Summary

差異

--- a/libpthread/nptl/sysdeps/riscv64/libc-tls.c
+++ b/libpthread/nptl/sysdeps/riscv64/libc-tls.c
@@ -17,7 +17,7 @@
1717 #include <sysdeps/generic/libc-tls.c>
1818 #include <dl-tls.h>
1919
20-/* On OpenRISC, linker optimizations are not required, so __tls_get_addr
20+/* On RISC-V 64, linker optimizations are not required, so __tls_get_addr
2121 can be called even in statically linked binaries. In this case module
2222 must be always 1 and PT_TLS segment exist in the binary, otherwise it
2323 would not link. */
--- a/libpthread/nptl/sysdeps/riscv64/tls.h
+++ b/libpthread/nptl/sysdeps/riscv64/tls.h
@@ -1,4 +1,4 @@
1-/* Definition for thread-local data handling. NPTL/OR1K version.
1+/* Definition for thread-local data handling. NPTL/RISCV64 version.
22 Copyright (C) 2005, 2007, 2011 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
@@ -70,7 +70,7 @@ register tcbhead_t *__thread_self __asm__("tp");
7070 * ------------------------------------
7171 * | PRE | TCB | TLS MEMORY .. |
7272 * ------------------------------------
73- * ^ r10 / TP
73+ * ^ x4 / TP
7474 *
7575 * PRE is the struct pthread described below
7676 * TCB is tcbhead_t