From 802cb57e34322fa1ce4a89cfa019d9e2181818d8 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sat, 28 Feb 2009 16:21:25 +0000 Subject: 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 --- sys/gnu/fs/xfs/FreeBSD/xfs_compat.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/gnu') diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_compat.h b/sys/gnu/fs/xfs/FreeBSD/xfs_compat.h index a98a7ee571df..7229f277f13d 100644 --- a/sys/gnu/fs/xfs/FreeBSD/xfs_compat.h +++ b/sys/gnu/fs/xfs/FreeBSD/xfs_compat.h @@ -129,10 +129,6 @@ typedef dev_t os_dev_t; #define copy_from_user(dst, src, len) copyin((src), (dst), (len)) #endif -#ifndef memmove -#define memmove(dst, src, len) bcopy((src), (dst), (len)) -#endif - #ifndef barrier #define barrier() __asm__ __volatile__("": : :"memory") #endif -- cgit v1.3