blob: cda740f7aff3c16ecb69bd09d5a1ad033aaf0a7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|