Make most arch asm/module.h files use asm-generic/module.h
[deliverable/linux.git] / arch / m68k / include / asm / module.h
CommitLineData
a5505464
GU
1#ifndef _ASM_M68K_MODULE_H
2#define _ASM_M68K_MODULE_H
3
786d35d4
DH
4#include <asm-generic/module.h>
5
a66af298
GU
6enum m68k_fixup_type {
7 m68k_fixup_memoffset,
8 m68k_fixup_vnode_shift,
9};
10
11struct m68k_fixup_info {
12 enum m68k_fixup_type type;
13 void *addr;
14};
a5505464
GU
15
16struct mod_arch_specific {
17 struct m68k_fixup_info *fixup_start, *fixup_end;
18};
19
a66af298
GU
20#ifdef CONFIG_MMU
21
a5505464
GU
22#define MODULE_ARCH_INIT { \
23 .fixup_start = __start_fixup, \
24 .fixup_end = __stop_fixup, \
25}
26
27
a5505464
GU
28#define m68k_fixup(type, addr) \
29 " .section \".m68k_fixup\",\"aw\"\n" \
30 " .long " #type "," #addr "\n" \
31 " .previous\n"
32
a66af298
GU
33#endif /* CONFIG_MMU */
34
a5505464
GU
35extern struct m68k_fixup_info __start_fixup[], __stop_fixup[];
36
37struct module;
38extern void module_fixup(struct module *mod, struct m68k_fixup_info *start,
39 struct m68k_fixup_info *end);
40
a5505464 41#endif /* _ASM_M68K_MODULE_H */
This page took 0.230189 seconds and 5 git commands to generate.