]>
Commit | Line | Data |
---|---|---|
1965aae3 PA |
1 | #ifndef _ASM_X86_VSYSCALL_H |
2 | #define _ASM_X86_VSYSCALL_H | |
1da177e4 | 3 | |
1da177e4 LT |
4 | enum vsyscall_num { |
5 | __NR_vgettimeofday, | |
6 | __NR_vtime, | |
c08c8205 | 7 | __NR_vgetcpu, |
1da177e4 LT |
8 | }; |
9 | ||
10 | #define VSYSCALL_START (-10UL << 20) | |
11 | #define VSYSCALL_SIZE 1024 | |
12 | #define VSYSCALL_END (-2UL << 20) | |
103efcd9 | 13 | #define VSYSCALL_MAPPED_PAGES 1 |
1da177e4 LT |
14 | #define VSYSCALL_ADDR(vsyscall_nr) (VSYSCALL_START+VSYSCALL_SIZE*(vsyscall_nr)) |
15 | ||
16 | #ifdef __KERNEL__ | |
75da736f | 17 | #include <linux/seqlock.h> |
1da177e4 | 18 | |
c08c8205 VP |
19 | #define VGETCPU_RDTSCP 1 |
20 | #define VGETCPU_LSL 2 | |
21 | ||
1da177e4 | 22 | /* kernel space (writeable) */ |
c08c8205 | 23 | extern int vgetcpu_mode; |
1da177e4 | 24 | extern struct timezone sys_tz; |
1da177e4 | 25 | |
8c49d9a7 AL |
26 | #include <asm/vvar.h> |
27 | ||
e4026440 IM |
28 | extern void map_vsyscall(void); |
29 | ||
3ae36655 AL |
30 | /* |
31 | * Called on instruction fetch fault in vsyscall page. | |
32 | * Returns true if handled. | |
33 | */ | |
34 | extern bool emulate_vsyscall(struct pt_regs *regs, unsigned long address); | |
35 | ||
1da177e4 LT |
36 | #endif /* __KERNEL__ */ |
37 | ||
1965aae3 | 38 | #endif /* _ASM_X86_VSYSCALL_H */ |