Blame view
include/asm-x86_64/vsyscall.h
1.35 KB
1da177e4c
|
1 2 |
#ifndef _ASM_X86_64_VSYSCALL_H_ #define _ASM_X86_64_VSYSCALL_H_ |
1da177e4c
|
3 4 5 |
enum vsyscall_num { __NR_vgettimeofday, __NR_vtime, |
c08c82050
|
6 |
__NR_vgetcpu, |
1da177e4c
|
7 8 9 10 11 |
}; #define VSYSCALL_START (-10UL << 20) #define VSYSCALL_SIZE 1024 #define VSYSCALL_END (-2UL << 20) |
103efcd9a
|
12 |
#define VSYSCALL_MAPPED_PAGES 1 |
1da177e4c
|
13 14 15 |
#define VSYSCALL_ADDR(vsyscall_nr) (VSYSCALL_START+VSYSCALL_SIZE*(vsyscall_nr)) #ifdef __KERNEL__ |
75da736fb
|
16 |
#include <linux/seqlock.h> |
1da177e4c
|
17 |
|
c08c82050
|
18 |
#define __section_vgetcpu_mode __attribute__ ((unused, __section__ (".vgetcpu_mode"), aligned(16))) |
1da177e4c
|
19 |
#define __section_jiffies __attribute__ ((unused, __section__ (".jiffies"), aligned(16))) |
1da177e4c
|
20 |
|
7460ed284
|
21 22 23 |
/* Definitions for CONFIG_GENERIC_TIME definitions */ #define __section_vsyscall_gtod_data __attribute__ \ ((unused, __section__ (".vsyscall_gtod_data"),aligned(16))) |
2aae950b2
|
24 25 |
#define __section_vsyscall_clock __attribute__ \ ((unused, __section__ (".vsyscall_clock"),aligned(16))) |
7460ed284
|
26 |
#define __vsyscall_fn __attribute__ ((unused,__section__(".vsyscall_fn"))) |
1da177e4c
|
27 |
|
c08c82050
|
28 29 |
#define VGETCPU_RDTSCP 1 #define VGETCPU_LSL 2 |
77a75333a
|
30 31 |
#define hpet_readl(a) readl((const void __iomem *)fix_to_virt(FIX_HPET_BASE) + a) #define hpet_writel(d,a) writel(d, (void __iomem *)fix_to_virt(FIX_HPET_BASE) + a) |
1da177e4c
|
32 |
|
c08c82050
|
33 |
extern int __vgetcpu_mode; |
1da177e4c
|
34 |
extern volatile unsigned long __jiffies; |
1da177e4c
|
35 36 |
/* kernel space (writeable) */ |
c08c82050
|
37 |
extern int vgetcpu_mode; |
1da177e4c
|
38 |
extern struct timezone sys_tz; |
1da177e4c
|
39 40 41 42 |
#endif /* __KERNEL__ */ #endif /* _ASM_X86_64_VSYSCALL_H_ */ |