Warning: This file is not a C or C++ file. It does not have highlighting.

1/* SPDX-License-Identifier: GPL-2.0-or-later */
2#ifndef _VDSO_DATAPAGE_H
3#define _VDSO_DATAPAGE_H
4#ifdef __KERNEL__
5
6/*
7 * Copyright (C) 2002 Peter Bergner <bergner@vnet.ibm.com>, IBM
8 * Copyright (C) 2005 Benjamin Herrenschmidy <benh@kernel.crashing.org>,
9 * IBM Corp.
10 */
11
12#ifndef __ASSEMBLER__
13
14#include <vdso/datapage.h>
15
16#else /* __ASSEMBLER__ */
17
18.macro get_datapage ptr symbol
19 bcl 20, 31, .+4
20999:
21 mflr \ptr
22 addis \ptr, \ptr, (\symbol - 999b)@ha
23 addi \ptr, \ptr, (\symbol - 999b)@l
24.endm
25
26#endif /* __ASSEMBLER__ */
27
28#endif /* __KERNEL__ */
29#endif /* _SYSTEMCFG_H */
30

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of linux/arch/powerpc/include/asm/vdso_datapage.h