Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140053
b: refs/heads/master
c: b609308
h: refs/heads/master
i:
  140051: 88d07f2
v: v3
  • Loading branch information
Kyle McMartin committed Apr 2, 2009
1 parent 8e30469 commit 9849080
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bf589a349b9a41ea202ddb8115b18f543b944bfd
refs/heads/master: b609308e1415efebdf79ebd553f4dd47b0ff2722
14 changes: 0 additions & 14 deletions trunk/arch/parisc/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/bug.h>
#include <linux/uaccess.h>

#include <asm/sections.h>
#include <asm/unwind.h>

#if 0
Expand Down Expand Up @@ -912,15 +910,3 @@ void module_arch_cleanup(struct module *mod)
deregister_unwind_table(mod);
module_bug_cleanup(mod);
}

#ifdef CONFIG_64BIT
void *dereference_function_descriptor(void *ptr)
{
Elf64_Fdesc *desc = ptr;
void *p;

if (!probe_kernel_address(&desc->addr, p))
ptr = p;
return ptr;
}
#endif
15 changes: 14 additions & 1 deletion trunk/arch/parisc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,15 @@
#include <linux/stddef.h>
#include <linux/unistd.h>
#include <linux/kallsyms.h>
#include <linux/uaccess.h>

#include <asm/io.h>
#include <asm/asm-offsets.h>
#include <asm/pdc.h>
#include <asm/pdc_chassis.h>
#include <asm/pgalloc.h>
#include <asm/uaccess.h>
#include <asm/unwind.h>
#include <asm/sections.h>

/*
* The idle thread. There's no useful work to be
Expand Down Expand Up @@ -390,3 +391,15 @@ get_wchan(struct task_struct *p)
} while (count++ < 16);
return 0;
}

#ifdef CONFIG_64BIT
void *dereference_function_descriptor(void *ptr)
{
Elf64_Fdesc *desc = ptr;
void *p;

if (!probe_kernel_address(&desc->addr, p))
ptr = p;
return ptr;
}
#endif

0 comments on commit 9849080

Please sign in to comment.