Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_IA64_SECTIONS_H |
| 2 | #define _ASM_IA64_SECTIONS_H |
| 3 | |
| 4 | /* |
| 5 | * Copyright (C) 1998-2003 Hewlett-Packard Co |
| 6 | * David Mosberger-Tang <davidm@hpl.hp.com> |
| 7 | */ |
| 8 | |
James Bottomley | 4611a77 | 2008-09-09 17:56:47 -0500 | [diff] [blame] | 9 | #include <linux/elf.h> |
| 10 | #include <linux/uaccess.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | #include <asm-generic/sections.h> |
| 12 | |
| 13 | extern char __per_cpu_start[], __per_cpu_end[], __phys_per_cpu_start[]; |
Tony Luck | c459ce8 | 2008-09-29 16:39:19 -0700 | [diff] [blame] | 14 | #ifdef CONFIG_SMP |
| 15 | extern char __cpu0_per_cpu[]; |
| 16 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | extern char __start___vtop_patchlist[], __end___vtop_patchlist[]; |
Tony Luck | 4dcc29e | 2008-05-27 13:23:16 -0700 | [diff] [blame] | 18 | extern char __start___rse_patchlist[], __end___rse_patchlist[]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | extern char __start___mckinley_e9_bundles[], __end___mckinley_e9_bundles[]; |
Chen, Kenneth W | a0776ec | 2006-10-13 10:05:45 -0700 | [diff] [blame] | 20 | extern char __start___phys_stack_reg_patchlist[], __end___phys_stack_reg_patchlist[]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | extern char __start_gate_section[]; |
| 22 | extern char __start_gate_mckinley_e9_patchlist[], __end_gate_mckinley_e9_patchlist[]; |
| 23 | extern char __start_gate_vtop_patchlist[], __end_gate_vtop_patchlist[]; |
| 24 | extern char __start_gate_fsyscall_patchlist[], __end_gate_fsyscall_patchlist[]; |
| 25 | extern char __start_gate_brl_fsys_bubble_down_patchlist[], __end_gate_brl_fsys_bubble_down_patchlist[]; |
| 26 | extern char __start_unwind[], __end_unwind[]; |
Keshavamurthy Anil S | c7b645f | 2005-06-27 15:17:16 -0700 | [diff] [blame] | 27 | extern char __start_ivt_text[], __end_ivt_text[]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
James Bottomley | deac93d | 2008-09-03 20:43:36 -0500 | [diff] [blame] | 29 | #undef dereference_function_descriptor |
James Bottomley | 4611a77 | 2008-09-09 17:56:47 -0500 | [diff] [blame] | 30 | static inline void *dereference_function_descriptor(void *ptr) |
| 31 | { |
| 32 | struct fdesc *desc = ptr; |
| 33 | void *p; |
| 34 | |
| 35 | if (!probe_kernel_address(&desc->ip, p)) |
| 36 | ptr = p; |
| 37 | return ptr; |
| 38 | } |
| 39 | |
James Bottomley | deac93d | 2008-09-03 20:43:36 -0500 | [diff] [blame] | 40 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | #endif /* _ASM_IA64_SECTIONS_H */ |
| 42 | |