]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86_64: Use __seg_fs qualifier to cast access to TCB in THREAD_GSCOPE_RESET_FLAG()
authorUros Bizjak <ubizjak@gmail.com>
Wed, 10 Sep 2025 18:30:56 +0000 (20:30 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Sun, 14 Sep 2025 19:50:50 +0000 (21:50 +0200)
commit3628351bcd91f8d62c92e6fc770316045c94e00a
tree305379b1ff759ab53404d8efddfef5407cb1c97d
parent273f80374aeb7d746352a098b23d9bb85e908ea8
x86_64: Use __seg_fs qualifier to cast access to TCB in THREAD_GSCOPE_RESET_FLAG()

Use the __seg_fs named address space qualifier to cast access to the
gscope_flag in the TCB as a %fs: prefixed address.  This enables the
use of the "m" operand constraint, which informs the compiler about
memory access in the inline assembly.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Cc: H.J.Lu <hjl.tools@gmail.com>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: Carlos O'Donell <carlos@redhat.com>
sysdeps/x86_64/nptl/tls.h