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