]> Git Repo - J-linux.git/blob - tools/testing/selftests/rseq/rseq-generic-thread-pointer.h
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / tools / testing / selftests / rseq / rseq-generic-thread-pointer.h
1 /* SPDX-License-Identifier: LGPL-2.1-only OR MIT */
2 /*
3  * rseq-generic-thread-pointer.h
4  *
5  * (C) Copyright 2021 - Mathieu Desnoyers <[email protected]>
6  */
7
8 #ifndef _RSEQ_GENERIC_THREAD_POINTER
9 #define _RSEQ_GENERIC_THREAD_POINTER
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 /* Use gcc builtin thread pointer. */
16 static inline void *rseq_thread_pointer(void)
17 {
18         return __builtin_thread_pointer();
19 }
20
21 #ifdef __cplusplus
22 }
23 #endif
24
25 #endif
This page took 0.039744 seconds and 4 git commands to generate.