diff options
Diffstat (limited to 'arch/mn10300/kernel')
-rw-r--r-- | arch/mn10300/kernel/entry.S | 2 | ||||
-rw-r--r-- | arch/mn10300/kernel/mn10300-watchdog.c | 2 | ||||
-rw-r--r-- | arch/mn10300/kernel/module.c | 61 | ||||
-rw-r--r-- | arch/mn10300/kernel/traps.c | 2 |
4 files changed, 3 insertions, 64 deletions
diff --git a/arch/mn10300/kernel/entry.S b/arch/mn10300/kernel/entry.S index ae435e1d566..3e3620d9fc4 100644 --- a/arch/mn10300/kernel/entry.S +++ b/arch/mn10300/kernel/entry.S | |||
@@ -589,7 +589,7 @@ ENTRY(sys_call_table) | |||
589 | .long sys_ni_syscall /* vm86 */ | 589 | .long sys_ni_syscall /* vm86 */ |
590 | .long sys_ni_syscall /* Old sys_query_module */ | 590 | .long sys_ni_syscall /* Old sys_query_module */ |
591 | .long sys_poll | 591 | .long sys_poll |
592 | .long sys_nfsservctl | 592 | .long sys_ni_syscall /* was nfsservctl */ |
593 | .long sys_setresgid16 /* 170 */ | 593 | .long sys_setresgid16 /* 170 */ |
594 | .long sys_getresgid16 | 594 | .long sys_getresgid16 |
595 | .long sys_prctl | 595 | .long sys_prctl |
diff --git a/arch/mn10300/kernel/mn10300-watchdog.c b/arch/mn10300/kernel/mn10300-watchdog.c index c5e12bfd9fc..a45f0c7549a 100644 --- a/arch/mn10300/kernel/mn10300-watchdog.c +++ b/arch/mn10300/kernel/mn10300-watchdog.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <linux/nmi.h> | 19 | #include <linux/nmi.h> |
20 | #include <asm/processor.h> | 20 | #include <asm/processor.h> |
21 | #include <asm/system.h> | 21 | #include <asm/system.h> |
22 | #include <asm/atomic.h> | 22 | #include <linux/atomic.h> |
23 | #include <asm/intctl-regs.h> | 23 | #include <asm/intctl-regs.h> |
24 | #include <asm/rtc-regs.h> | 24 | #include <asm/rtc-regs.h> |
25 | #include <asm/div64.h> | 25 | #include <asm/div64.h> |
diff --git a/arch/mn10300/kernel/module.c b/arch/mn10300/kernel/module.c index 196a111e2e2..216ad23c957 100644 --- a/arch/mn10300/kernel/module.c +++ b/arch/mn10300/kernel/module.c | |||
@@ -32,36 +32,6 @@ | |||
32 | #define DEBUGP(fmt, ...) | 32 | #define DEBUGP(fmt, ...) |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | /* | ||
36 | * allocate storage for a module | ||
37 | */ | ||
38 | void *module_alloc(unsigned long size) | ||
39 | { | ||
40 | if (size == 0) | ||
41 | return NULL; | ||
42 | return vmalloc_exec(size); | ||
43 | } | ||
44 | |||
45 | /* | ||
46 | * free memory returned from module_alloc() | ||
47 | */ | ||
48 | void module_free(struct module *mod, void *module_region) | ||
49 | { | ||
50 | vfree(module_region); | ||
51 | } | ||
52 | |||
53 | /* | ||
54 | * allow the arch to fix up the section table | ||
55 | * - we don't need anything special | ||
56 | */ | ||
57 | int module_frob_arch_sections(Elf_Ehdr *hdr, | ||
58 | Elf_Shdr *sechdrs, | ||
59 | char *secstrings, | ||
60 | struct module *mod) | ||
61 | { | ||
62 | return 0; | ||
63 | } | ||
64 | |||
65 | static void reloc_put16(uint8_t *p, uint32_t val) | 35 | static void reloc_put16(uint8_t *p, uint32_t val) |
66 | { | 36 | { |
67 | p[0] = val & 0xff; | 37 | p[0] = val & 0xff; |
@@ -81,20 +51,6 @@ static void reloc_put32(uint8_t *p, uint32_t val) | |||
81 | } | 51 | } |
82 | 52 | ||
83 | /* | 53 | /* |
84 | * apply a REL relocation | ||
85 | */ | ||
86 | int apply_relocate(Elf32_Shdr *sechdrs, | ||
87 | const char *strtab, | ||
88 | unsigned int symindex, | ||
89 | unsigned int relsec, | ||
90 | struct module *me) | ||
91 | { | ||
92 | printk(KERN_ERR "module %s: RELOCATION unsupported\n", | ||
93 | me->name); | ||
94 | return -ENOEXEC; | ||
95 | } | ||
96 | |||
97 | /* | ||
98 | * apply a RELA relocation | 54 | * apply a RELA relocation |
99 | */ | 55 | */ |
100 | int apply_relocate_add(Elf32_Shdr *sechdrs, | 56 | int apply_relocate_add(Elf32_Shdr *sechdrs, |
@@ -198,20 +154,3 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, | |||
198 | } | 154 | } |
199 | return 0; | 155 | return 0; |
200 | } | 156 | } |
201 | |||
202 | /* | ||
203 | * finish loading the module | ||
204 | */ | ||
205 | int module_finalize(const Elf_Ehdr *hdr, | ||
206 | const Elf_Shdr *sechdrs, | ||
207 | struct module *me) | ||
208 | { | ||
209 | return 0; | ||
210 | } | ||
211 | |||
212 | /* | ||
213 | * finish clearing the module | ||
214 | */ | ||
215 | void module_arch_cleanup(struct module *mod) | ||
216 | { | ||
217 | } | ||
diff --git a/arch/mn10300/kernel/traps.c b/arch/mn10300/kernel/traps.c index bd3e5e73826..9220a75a7b4 100644 --- a/arch/mn10300/kernel/traps.c +++ b/arch/mn10300/kernel/traps.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <asm/system.h> | 30 | #include <asm/system.h> |
31 | #include <linux/uaccess.h> | 31 | #include <linux/uaccess.h> |
32 | #include <asm/io.h> | 32 | #include <asm/io.h> |
33 | #include <asm/atomic.h> | 33 | #include <linux/atomic.h> |
34 | #include <asm/smp.h> | 34 | #include <asm/smp.h> |
35 | #include <asm/pgalloc.h> | 35 | #include <asm/pgalloc.h> |
36 | #include <asm/cacheflush.h> | 36 | #include <asm/cacheflush.h> |