John Cavan <[EMAIL PROTECTED]> writes:

> Yep, everything except the most important part: the kernel.

The kernel can compile with these patches  :

--- linux/arch/i386/lib/Makefile.gcc    Mon Jul 24 16:24:16 2000
+++ linux/arch/i386/lib/Makefile        Mon Jul 24 16:24:26 2000
@@ -3,7 +3,7 @@
 #
 
 .S.o:
-       $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o
+       $(CC) -D__ASSEMBLY__ $(AFLAGS) -c $< -o $*.o
 
 L_TARGET = lib.a
 L_OBJS  = checksum.o old-checksum.o semaphore.o delay.o \
--- linux/drivers/usb/microtek.c.gcc    Mon Jul 24 16:48:23 2000
+++ linux/drivers/usb/microtek.c        Mon Jul 24 16:55:14 2000
@@ -493,7 +493,7 @@ void mts_int_submit_urb (struct urb* tra
 
        res = usb_submit_urb( transfer );
        if ( res ) {
-               MTS_INT_ERROR( "could not submit URB! Error was %d\n",(int)res );
+               MTS_ERROR( "could not submit URB! Error was %d\n",(int)res );
                context->srb->result = DID_ERROR << 16;
                context->state = mts_con_error;
                mts_transfer_cleanup(transfer);
--- linux/arch/i386/lib/Makefile.library        Sun Jun 18 11:12:36 2000
+++ linux/arch/i386/lib/Makefile        Sun Jun 18 11:12:51 2000
@@ -7,6 +7,6 @@
 
 L_TARGET = lib.a
 L_OBJS  = checksum.o old-checksum.o semaphore.o delay.o \
-       usercopy.o getuser.o putuser.o
+       usercopy.o getuser.o putuser.o memcpy.o memset.o
 
 include $(TOPDIR)/Rules.make
--- linux/arch/i386/lib/memcpy.c.library        Sun Jun 18 11:12:51 2000
+++ linux/arch/i386/lib/memcpy.c        Sun Jun 18 11:12:51 2000
@@ -0,0 +1,13 @@
+/* Non inlined version of memcpy for those cases where gcc will issue a
+ * libcall instead of generating inline code.
+ */
+
+#include <linux/types.h>
+#include <linux/string.h>
+
+#undef memcpy
+ 
+void *memcpy(void * to, const void * from, size_t len)
+{
+       return __memcpy(to, from, len);
+}
--- linux/arch/i386/lib/memset.c.library        Sun Jun 18 11:12:51 2000
+++ linux/arch/i386/lib/memset.c        Sun Jun 18 11:12:51 2000
@@ -0,0 +1,13 @@
+/* Non inlined version of memset for those cases where gcc will issue a
+ * libcall instead of generating inline code.
+ */
+
+#include <linux/types.h>
+#include <linux/string.h>
+
+#undef memset
+ 
+void *memset(void * s, char c, size_t count)
+{
+       return __memset_generic(s, c, count);
+}
--- linux/arch/i386/kernel/i386_ksyms.c.str     Mon Oct  2 16:30:56 2000
+++ linux/arch/i386/kernel/i386_ksyms.c Mon Oct  2 16:32:18 2000
@@ -144,3 +144,8 @@ EXPORT_SYMBOL(kdb_printf);
 #endif
 
 EXPORT_SYMBOL(rtc_lock);
+
+#undef memcpy
+#undef memset
+EXPORT_SYMBOL_NOVERS(memcpy);
+EXPORT_SYMBOL_NOVERS(memset);


-- 
MandrakeSoft Inc                     http://www.chmouel.org
Paris, France                                     --Chmouel

Reply via email to