sections.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _ASM_IA64_SECTIONS_H
  2. #define _ASM_IA64_SECTIONS_H
  3. /*
  4. * Copyright (C) 1998-2003 Hewlett-Packard Co
  5. * David Mosberger-Tang <davidm@hpl.hp.com>
  6. */
  7. #include <linux/elf.h>
  8. #include <linux/uaccess.h>
  9. #include <asm-generic/sections.h>
  10. extern char __phys_per_cpu_start[];
  11. #ifdef CONFIG_SMP
  12. extern char __cpu0_per_cpu[];
  13. #endif
  14. extern char __start___vtop_patchlist[], __end___vtop_patchlist[];
  15. extern char __start___rse_patchlist[], __end___rse_patchlist[];
  16. extern char __start___mckinley_e9_bundles[], __end___mckinley_e9_bundles[];
  17. extern char __start___phys_stack_reg_patchlist[], __end___phys_stack_reg_patchlist[];
  18. extern char __start_gate_section[];
  19. extern char __start_gate_mckinley_e9_patchlist[], __end_gate_mckinley_e9_patchlist[];
  20. extern char __start_gate_vtop_patchlist[], __end_gate_vtop_patchlist[];
  21. extern char __start_gate_fsyscall_patchlist[], __end_gate_fsyscall_patchlist[];
  22. extern char __start_gate_brl_fsys_bubble_down_patchlist[], __end_gate_brl_fsys_bubble_down_patchlist[];
  23. extern char __start_unwind[], __end_unwind[];
  24. extern char __start_ivt_text[], __end_ivt_text[];
  25. #undef dereference_function_descriptor
  26. static inline void *dereference_function_descriptor(void *ptr)
  27. {
  28. struct fdesc *desc = ptr;
  29. void *p;
  30. if (!probe_kernel_address(&desc->ip, p))
  31. ptr = p;
  32. return ptr;
  33. }
  34. #endif /* _ASM_IA64_SECTIONS_H */