vsyscall32.h 670 B

1234567891011121314151617181920
  1. #ifndef _ASM_VSYSCALL32_H
  2. #define _ASM_VSYSCALL32_H 1
  3. /* Values need to match arch/x86_64/ia32/vsyscall.lds */
  4. #ifdef __ASSEMBLY__
  5. #define VSYSCALL32_BASE 0xffffe000
  6. #define VSYSCALL32_SYSEXIT (VSYSCALL32_BASE + 0x410)
  7. #else
  8. #define VSYSCALL32_BASE 0xffffe000UL
  9. #define VSYSCALL32_END (VSYSCALL32_BASE + PAGE_SIZE)
  10. #define VSYSCALL32_EHDR ((const struct elf32_hdr *) VSYSCALL32_BASE)
  11. #define VSYSCALL32_VSYSCALL ((void *)VSYSCALL32_BASE + 0x400)
  12. #define VSYSCALL32_SYSEXIT ((void *)VSYSCALL32_BASE + 0x410)
  13. #define VSYSCALL32_SIGRETURN ((void __user *)VSYSCALL32_BASE + 0x500)
  14. #define VSYSCALL32_RTSIGRETURN ((void __user *)VSYSCALL32_BASE + 0x600)
  15. #endif
  16. #endif