mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
14 lines
291 B
C
14 lines
291 B
C
![]() |
/* 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
|