diff options
author | KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> | 2009-09-22 19:45:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:42 -0400 |
commit | 81ac3ad9061dd9cd490ee92f0c5316a14d77ce18 (patch) | |
tree | 1787b8c307b5e70e2763c4e7c0767c2b7e108dc4 /mm/vmalloc.c | |
parent | 26562c59fa9111ae3ea7b78045889662aac9e5ac (diff) |
kcore: register module area in generic way
Some archs define MODULED_VADDR/MODULES_END which is not in VMALLOC area.
This is handled only in x86-64. This patch make it more generic. And we
can use vread/vwrite to access the area. Fix it.
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 5535da1d6961..69511e663234 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -184,7 +184,7 @@ static int vmap_page_range(unsigned long start, unsigned long end, | |||
184 | return ret; | 184 | return ret; |
185 | } | 185 | } |
186 | 186 | ||
187 | static inline int is_vmalloc_or_module_addr(const void *x) | 187 | int is_vmalloc_or_module_addr(const void *x) |
188 | { | 188 | { |
189 | /* | 189 | /* |
190 | * ARM, x86-64 and sparc64 put modules in a special place, | 190 | * ARM, x86-64 and sparc64 put modules in a special place, |