blob: f6679989103689c24f01315b8f1e41c078b79ce2 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#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 Bottomley4611a772008-09-09 17:56:47 -05009#include <linux/elf.h>
10#include <linux/uaccess.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070011#include <asm-generic/sections.h>
12
13extern char __per_cpu_start[], __per_cpu_end[], __phys_per_cpu_start[];
14extern char __start___vtop_patchlist[], __end___vtop_patchlist[];
Tony Luck4dcc29e2008-05-27 13:23:16 -070015extern char __start___rse_patchlist[], __end___rse_patchlist[];
Linus Torvalds1da177e2005-04-16 15:20:36 -070016extern char __start___mckinley_e9_bundles[], __end___mckinley_e9_bundles[];
Chen, Kenneth Wa0776ec2006-10-13 10:05:45 -070017extern char __start___phys_stack_reg_patchlist[], __end___phys_stack_reg_patchlist[];
Linus Torvalds1da177e2005-04-16 15:20:36 -070018extern char __start_gate_section[];
19extern char __start_gate_mckinley_e9_patchlist[], __end_gate_mckinley_e9_patchlist[];
20extern char __start_gate_vtop_patchlist[], __end_gate_vtop_patchlist[];
21extern char __start_gate_fsyscall_patchlist[], __end_gate_fsyscall_patchlist[];
22extern char __start_gate_brl_fsys_bubble_down_patchlist[], __end_gate_brl_fsys_bubble_down_patchlist[];
23extern char __start_unwind[], __end_unwind[];
Keshavamurthy Anil Sc7b645f2005-06-27 15:17:16 -070024extern char __start_ivt_text[], __end_ivt_text[];
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
James Bottomleydeac93d2008-09-03 20:43:36 -050026#undef dereference_function_descriptor
James Bottomley4611a772008-09-09 17:56:47 -050027static inline void *dereference_function_descriptor(void *ptr)
28{
29 struct fdesc *desc = ptr;
30 void *p;
31
32 if (!probe_kernel_address(&desc->ip, p))
33 ptr = p;
34 return ptr;
35}
36
James Bottomleydeac93d2008-09-03 20:43:36 -050037
Linus Torvalds1da177e2005-04-16 15:20:36 -070038#endif /* _ASM_IA64_SECTIONS_H */
39