diff options
author | Eugene Surovegin <ebs@ebshome.net> | 2005-09-03 18:55:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 03:06:00 -0400 |
commit | e8834801bf9e2ee96c3ac29adf0ff6840afcd841 (patch) | |
tree | 03b26322908b7f87600763dd110c76f55e541cbe | |
parent | 3a0a401b40abe31b34673a190c57697e7eced149 (diff) |
[PATCH] ppc32: export cacheable_memcpy()
Add declaration and cacheable_memcpy(). I'll be needing this function in
new 4xx EMAC driver I'm going to submit to netdev soon.
IMHO, the better place for the declaration would be asm-powerpc/string.h,
unfortunately, ppc64 doesn't have this function, so asm-ppc/system.h is the
next best place.
Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/ppc/kernel/ppc_ksyms.c | 1 | ||||
-rw-r--r-- | include/asm-ppc/system.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/ppc/kernel/ppc_ksyms.c b/arch/ppc/kernel/ppc_ksyms.c index e208ef920082..88f6bb7b6964 100644 --- a/arch/ppc/kernel/ppc_ksyms.c +++ b/arch/ppc/kernel/ppc_ksyms.c | |||
@@ -260,6 +260,7 @@ EXPORT_SYMBOL(__ashrdi3); | |||
260 | EXPORT_SYMBOL(__ashldi3); | 260 | EXPORT_SYMBOL(__ashldi3); |
261 | EXPORT_SYMBOL(__lshrdi3); | 261 | EXPORT_SYMBOL(__lshrdi3); |
262 | EXPORT_SYMBOL(memcpy); | 262 | EXPORT_SYMBOL(memcpy); |
263 | EXPORT_SYMBOL(cacheable_memcpy); | ||
263 | EXPORT_SYMBOL(memset); | 264 | EXPORT_SYMBOL(memset); |
264 | EXPORT_SYMBOL(memmove); | 265 | EXPORT_SYMBOL(memmove); |
265 | EXPORT_SYMBOL(memscan); | 266 | EXPORT_SYMBOL(memscan); |
diff --git a/include/asm-ppc/system.h b/include/asm-ppc/system.h index be6557746ab6..513a334c5810 100644 --- a/include/asm-ppc/system.h +++ b/include/asm-ppc/system.h | |||
@@ -84,6 +84,7 @@ extern void cvt_fd(float *from, double *to, unsigned long *fpscr); | |||
84 | extern void cvt_df(double *from, float *to, unsigned long *fpscr); | 84 | extern void cvt_df(double *from, float *to, unsigned long *fpscr); |
85 | extern int call_rtas(const char *, int, int, unsigned long *, ...); | 85 | extern int call_rtas(const char *, int, int, unsigned long *, ...); |
86 | extern void cacheable_memzero(void *p, unsigned int nb); | 86 | extern void cacheable_memzero(void *p, unsigned int nb); |
87 | extern void *cacheable_memcpy(void *, const void *, unsigned int); | ||
87 | extern int do_page_fault(struct pt_regs *, unsigned long, unsigned long); | 88 | extern int do_page_fault(struct pt_regs *, unsigned long, unsigned long); |
88 | extern void bad_page_fault(struct pt_regs *, unsigned long, int); | 89 | extern void bad_page_fault(struct pt_regs *, unsigned long, int); |
89 | extern void die(const char *, struct pt_regs *, long); | 90 | extern void die(const char *, struct pt_regs *, long); |