diff options
author | ed <ed@FreeBSD.org> | 2009-02-28 16:21:25 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-02-28 16:21:25 +0000 |
commit | 322413c46c002718cc357647800a58347e6a7535 (patch) | |
tree | d48f20a6281397e8e474df818dbfe4b4795b419e /sys/powerpc/booke | |
parent | 1c22aa10afa2d0933dda4f1fd7bbae1cc4429bf6 (diff) | |
download | FreeBSD-src-322413c46c002718cc357647800a58347e6a7535.zip FreeBSD-src-322413c46c002718cc357647800a58347e6a7535.tar.gz |
Add memmove() to the kernel, making the kernel compile with Clang.
When copying big structures, LLVM generates calls to memmove(), because
it may not be able to figure out whether structures overlap. This caused
linker errors to occur. memmove() is now implemented using bcopy().
Ideally it would be the other way around, but that can be solved in the
future. On ARM we don't do add anything, because it already has
memmove().
Discussed on: arch@
Reviewed by: rdivacky
Diffstat (limited to 'sys/powerpc/booke')
-rw-r--r-- | sys/powerpc/booke/pmap.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c index 72964f7..136279d 100644 --- a/sys/powerpc/booke/pmap.c +++ b/sys/powerpc/booke/pmap.c @@ -100,7 +100,6 @@ __FBSDID("$FreeBSD$"); #endif #define TODO panic("%s: not implemented", __func__); -#define memmove(d, s, l) bcopy(s, d, l) #include "opt_sched.h" #ifndef SCHED_4BSD |