diff mbox series

[uclibc-ng-devel] riscv64: fix comments borrowed from or1k port

Message ID 20191108135027.31944-1-ysionneau@kalray.eu
State Accepted
Headers show
Series [uclibc-ng-devel] riscv64: fix comments borrowed from or1k port | expand

Commit Message

Yann Sionneau Nov. 8, 2019, 1:50 p.m. UTC
Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
---
 libpthread/nptl/sysdeps/riscv64/libc-tls.c | 2 +-
 libpthread/nptl/sysdeps/riscv64/tls.h      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

Waldemar Brodkorb Nov. 17, 2019, 4:37 p.m. UTC | #1
Hi Yann,

thanks for cleaning up,
 pushed,
  best regards
   Waldemar

Yann Sionneau wrote,

> Signed-off-by: Yann Sionneau <ysionneau@kalray.eu>
> ---
>  libpthread/nptl/sysdeps/riscv64/libc-tls.c | 2 +-
>  libpthread/nptl/sysdeps/riscv64/tls.h      | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/libpthread/nptl/sysdeps/riscv64/libc-tls.c b/libpthread/nptl/sysdeps/riscv64/libc-tls.c
> index 500de1d..67c3a60 100644
> --- a/libpthread/nptl/sysdeps/riscv64/libc-tls.c
> +++ b/libpthread/nptl/sysdeps/riscv64/libc-tls.c
> @@ -17,7 +17,7 @@
>  #include <sysdeps/generic/libc-tls.c>
>  #include <dl-tls.h>
>  
> -/* On OpenRISC, linker optimizations are not required, so __tls_get_addr
> +/* On RISC-V 64, linker optimizations are not required, so __tls_get_addr
>     can be called even in statically linked binaries.  In this case module
>     must be always 1 and PT_TLS segment exist in the binary, otherwise it
>     would not link.  */
> diff --git a/libpthread/nptl/sysdeps/riscv64/tls.h b/libpthread/nptl/sysdeps/riscv64/tls.h
> index 33a3781..8295c71 100644
> --- a/libpthread/nptl/sysdeps/riscv64/tls.h
> +++ b/libpthread/nptl/sysdeps/riscv64/tls.h
> @@ -1,4 +1,4 @@
> -/* Definition for thread-local data handling.  NPTL/OR1K version.
> +/* Definition for thread-local data handling.  NPTL/RISCV64 version.
>     Copyright (C) 2005, 2007, 2011 Free Software Foundation, Inc.
>     This file is part of the GNU C Library.
>  
> @@ -70,7 +70,7 @@ register tcbhead_t *__thread_self __asm__("tp");
>   *  ------------------------------------
>   *  | PRE | TCB | TLS MEMORY ..        |
>   *  ------------------------------------
> - *              ^ r10 / TP
> + *              ^ x4 / TP
>   *
>   * PRE is the struct pthread described below
>   * TCB is tcbhead_t
> -- 
> 1.8.3.1
> 
> _______________________________________________
> devel mailing list
> devel@uclibc-ng.org
> https://mailman.uclibc-ng.org/cgi-bin/mailman/listinfo/devel
diff mbox series

Patch

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