patch-1.3.38 linux/include/asm-alpha/string.h

Next file: linux/include/asm-i386/bitops.h
Previous file: linux/include/asm-alpha/page.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.37/linux/include/asm-alpha/string.h linux/include/asm-alpha/string.h
@@ -3,7 +3,21 @@
 
 extern void * __constant_c_memset(void *, unsigned long, long);
 extern void * __memset(void *, char, size_t);
+
+/*
+ * Ugh. Gcc uses "bcopy()" internally for structure assignments.
+ */
+#define __HAVE_ARCH_BCOPY
+
+/*
+ * Define "memcpy()" to something else, otherwise gcc will
+ * corrupt that too into a "bcopy".  Also, some day we might
+ * want to do a separate inlined constant-size memcpy (for 8
+ * and 16 byte user<->kernel structure copying).
+ */
+#define __HAVE_ARCH_MEMCPY
 extern void * __memcpy(void *, const void *, size_t);
+#define memcpy __memcpy
 
 #define __HAVE_ARCH_MEMSET
 #define memset(s, c, count) \

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this