aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/vdso/vextern.h
blob: 1683ba2ae3e8d61e65e6a1a8d58c749d9f0f715e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef VEXTERN
#include <asm/vsyscall.h>
#define VEXTERN(x) \
	extern typeof(x) *vdso_ ## x __attribute__((visibility("hidden")));
#endif

#define VMAGIC 0xfeedbabeabcdefabUL

/* Any kernel variables used in the vDSO must be exported in the main
   kernel's vmlinux.lds.S/vsyscall.h/proper __section and
   put into vextern.h and be referenced as a pointer with vdso prefix.
   The main kernel later fills in the values.   */

VEXTERN(jiffies)
VEXTERN(vgetcpu_mode)
VEXTERN(vsyscall_gtod_data)