Resguardo inicial

This commit is contained in:
lastdragon
2026-09-06 12:53:21 -06:00
parent 662efe3c2a
commit ad2088d178
94853 changed files with 43200404 additions and 0 deletions
@@ -0,0 +1,13 @@
/* SPDX-License-Identifier: LGPL-2.1-only OR MIT */
#ifndef _RSEQ_OR1K_THREAD_POINTER
#define _RSEQ_OR1K_THREAD_POINTER
static inline void *rseq_thread_pointer(void)
{
void *__thread_register;
__asm__ ("l.or %0, r10, r0" : "=r" (__thread_register));
return __thread_register;
}
#endif