vdso.h 411 B

1234567891011121314
  1. #ifndef _ASM_X86_VDSO_H
  2. #define _ASM_X86_VDSO_H 1
  3. extern const char VDSO64_PRELINK[];
  4. /*
  5. * Given a pointer to the vDSO image, find the pointer to VDSO64_name
  6. * as that symbol is defined in the vDSO sources or linker script.
  7. */
  8. #define VDSO64_SYMBOL(base, name) ({ \
  9. extern const char VDSO64_##name[]; \
  10. (void *) (VDSO64_##name - VDSO64_PRELINK + (unsigned long) (base)); })
  11. #endif /* asm-x86/vdso.h */