Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 LT |
2 | #ifndef _ASM_IA64_SECTIONS_H |
3 | #define _ASM_IA64_SECTIONS_H | |
4 | ||
5 | /* | |
6 | * Copyright (C) 1998-2003 Hewlett-Packard Co | |
7 | * David Mosberger-Tang <davidm@hpl.hp.com> | |
8 | */ | |
9 | ||
4611a771 JB |
10 | #include <linux/elf.h> |
11 | #include <linux/uaccess.h> | |
1da177e4 LT |
12 | #include <asm-generic/sections.h> |
13 | ||
4c6327df | 14 | extern char __phys_per_cpu_start[]; |
c459ce8b TL |
15 | #ifdef CONFIG_SMP |
16 | extern char __cpu0_per_cpu[]; | |
17 | #endif | |
1da177e4 | 18 | extern char __start___vtop_patchlist[], __end___vtop_patchlist[]; |
4dcc29e1 | 19 | extern char __start___rse_patchlist[], __end___rse_patchlist[]; |
1da177e4 | 20 | extern char __start___mckinley_e9_bundles[], __end___mckinley_e9_bundles[]; |
a0776ec8 | 21 | extern char __start___phys_stack_reg_patchlist[], __end___phys_stack_reg_patchlist[]; |
1da177e4 LT |
22 | extern char __start_gate_section[]; |
23 | extern char __start_gate_mckinley_e9_patchlist[], __end_gate_mckinley_e9_patchlist[]; | |
24 | extern char __start_gate_vtop_patchlist[], __end_gate_vtop_patchlist[]; | |
25 | extern char __start_gate_fsyscall_patchlist[], __end_gate_fsyscall_patchlist[]; | |
26 | extern char __start_gate_brl_fsys_bubble_down_patchlist[], __end_gate_brl_fsys_bubble_down_patchlist[]; | |
27 | extern char __start_unwind[], __end_unwind[]; | |
c7b645f9 | 28 | extern char __start_ivt_text[], __end_ivt_text[]; |
1da177e4 | 29 | |
deac93df | 30 | #undef dereference_function_descriptor |
4611a771 JB |
31 | static 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 | ||
deac93df | 41 | |
1da177e4 LT |
42 | #endif /* _ASM_IA64_SECTIONS_H */ |
43 |