1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ARCH_SPARC64_PERCPU__
3 #define __ARCH_SPARC64_PERCPU__
5 #include <linux/compiler.h>
7 register unsigned long __local_per_cpu_offset
asm("g5");
11 #include <asm/trap_block.h>
13 #define __per_cpu_offset(__cpu) \
14 (trap_block[(__cpu)].__per_cpu_base)
15 #define per_cpu_offset(x) (__per_cpu_offset(x))
17 #define __my_cpu_offset __local_per_cpu_offset
23 #include <asm-generic/percpu.h>
25 #endif /* __ARCH_SPARC64_PERCPU__ */