Blame view

include/asm-x86_64/vsyscall.h 1.35 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
  #ifndef _ASM_X86_64_VSYSCALL_H_
  #define _ASM_X86_64_VSYSCALL_H_
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
3
4
5
  enum vsyscall_num {
  	__NR_vgettimeofday,
  	__NR_vtime,
c08c82050   Vojtech Pavlik   [PATCH] Add the v...
6
  	__NR_vgetcpu,
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
7
8
9
10
11
  };
  
  #define VSYSCALL_START (-10UL << 20)
  #define VSYSCALL_SIZE 1024
  #define VSYSCALL_END (-2UL << 20)
103efcd9a   Ernie Petrides   [PATCH] x86-64: f...
12
  #define VSYSCALL_MAPPED_PAGES 1
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
13
14
15
  #define VSYSCALL_ADDR(vsyscall_nr) (VSYSCALL_START+VSYSCALL_SIZE*(vsyscall_nr))
  
  #ifdef __KERNEL__
75da736fb   David Woodhouse   [PATCH] Fix 'make...
16
  #include <linux/seqlock.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
17

c08c82050   Vojtech Pavlik   [PATCH] Add the v...
18
  #define __section_vgetcpu_mode __attribute__ ((unused, __section__ (".vgetcpu_mode"), aligned(16)))
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
19
  #define __section_jiffies __attribute__ ((unused, __section__ (".jiffies"), aligned(16)))
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
20

7460ed284   John Stultz   [PATCH] time: x86...
21
22
23
  /* Definitions for CONFIG_GENERIC_TIME definitions */
  #define __section_vsyscall_gtod_data __attribute__ \
  	((unused, __section__ (".vsyscall_gtod_data"),aligned(16)))
2aae950b2   Andi Kleen   x86_64: Add vDSO ...
24
25
  #define __section_vsyscall_clock __attribute__ \
  	((unused, __section__ (".vsyscall_clock"),aligned(16)))
7460ed284   John Stultz   [PATCH] time: x86...
26
  #define __vsyscall_fn __attribute__ ((unused,__section__(".vsyscall_fn")))
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
27

c08c82050   Vojtech Pavlik   [PATCH] Add the v...
28
29
  #define VGETCPU_RDTSCP	1
  #define VGETCPU_LSL	2
77a75333a   Stephen Hemminger   [PATCH] x86_64: s...
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   Linus Torvalds   Linux-2.6.12-rc2
32

c08c82050   Vojtech Pavlik   [PATCH] Add the v...
33
  extern int __vgetcpu_mode;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
34
  extern volatile unsigned long __jiffies;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
35
36
  
  /* kernel space (writeable) */
c08c82050   Vojtech Pavlik   [PATCH] Add the v...
37
  extern int vgetcpu_mode;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
38
  extern struct timezone sys_tz;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
39
40
41
42
  
  #endif /* __KERNEL__ */
  
  #endif /* _ASM_X86_64_VSYSCALL_H_ */