module.c (c4c0c56a7a85ed5725786219e4fbca7e840b1531) module.c (deac93df26b20cf8438339b5935b5f5643bc30c9)
1/*
2 * IA-64-specific support for kernel module loader.
3 *
4 * Copyright (C) 2003 Hewlett-Packard Co
5 * David Mosberger-Tang <davidm@hpl.hp.com>
6 *
7 * Loosely based on patch by Rusty Russell.
8 */

--- 17 unchanged lines hidden (view full) ---

26 */
27
28
29#include <linux/kernel.h>
30#include <linux/sched.h>
31#include <linux/elf.h>
32#include <linux/moduleloader.h>
33#include <linux/string.h>
1/*
2 * IA-64-specific support for kernel module loader.
3 *
4 * Copyright (C) 2003 Hewlett-Packard Co
5 * David Mosberger-Tang <davidm@hpl.hp.com>
6 *
7 * Loosely based on patch by Rusty Russell.
8 */

--- 17 unchanged lines hidden (view full) ---

26 */
27
28
29#include <linux/kernel.h>
30#include <linux/sched.h>
31#include <linux/elf.h>
32#include <linux/moduleloader.h>
33#include <linux/string.h>
34#include <linux/uaccess.h>
34#include <linux/vmalloc.h>
35
36#include <asm/patch.h>
35#include <linux/vmalloc.h>
36
37#include <asm/patch.h>
38#include <asm/sections.h>
37#include <asm/unaligned.h>
38
39#define ARCH_MODULE_DEBUG 0
40
41#if ARCH_MODULE_DEBUG
42# define DEBUGP printk
43# define inline
44#else

--- 891 unchanged lines hidden (view full) ---

936void
937module_arch_cleanup (struct module *mod)
938{
939 if (mod->arch.init_unw_table)
940 unw_remove_unwind_table(mod->arch.init_unw_table);
941 if (mod->arch.core_unw_table)
942 unw_remove_unwind_table(mod->arch.core_unw_table);
943}
39#include <asm/unaligned.h>
40
41#define ARCH_MODULE_DEBUG 0
42
43#if ARCH_MODULE_DEBUG
44# define DEBUGP printk
45# define inline
46#else

--- 891 unchanged lines hidden (view full) ---

938void
939module_arch_cleanup (struct module *mod)
940{
941 if (mod->arch.init_unw_table)
942 unw_remove_unwind_table(mod->arch.init_unw_table);
943 if (mod->arch.core_unw_table)
944 unw_remove_unwind_table(mod->arch.core_unw_table);
945}
946
947void *dereference_function_descriptor(void *ptr)
948{
949 struct fdesc *desc = ptr;
950 void *p;
951
952 if (!probe_kernel_address(&desc->ip, p))
953 ptr = p;
954 return ptr;
955}