6.60.28 Функции RISC-V по умолчанию
Эти встроенные функции доступны для процессоров семейства RISC-V.
- Встроенная функция: void * __builtin_thread_pointer (void)
Возвращает значение, которое в данный момент установлено в регистре ‘tp’.
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/RISC-V-Built-in-Functions.html