You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
495 B
16 lines
495 B
#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)
|
|
|