Re: linux-2.4.0-test2

From: chrisv@b0rked.dhs.org
Date: Sat Jun 24 2000 - 21:18:26 EST


On Sat, 24 Jun 2000, Richard Gooch wrote:

> Alan Cox writes:
> > > {standard input}: Assembler messages:
> > > {standard input}:1814: Error: no such 386 instruction: `ldmxcsr'
> >
> > Thats binutils
>
> Yeah. The official version of binutils listed in Documentation/Changes.
> Has a new version of binutils been mandated? If so, what is it?
>
Try binutils-2.10. Or, if you don't want to upgrade, apply this patch:

###################
--- linux_old/arch/i386/kernel/traps.c Sat Jun 24 19:01:20 2000
+++ linux/arch/i386/kernel/traps.c Sat Jun 24 19:02:11 2000
@@ -50,6 +50,9 @@

 #include <linux/irq.h>

+#undef cpu_has_xmm
+#define cpu_has_xmm 0
+
 asmlinkage int system_call(void);
 asmlinkage void lcall7(void);
 asmlinkage void lcall27(void);
###################

> > > -__cacheline_aligned spinlock_t runqueue_lock = SPIN_LOCK_UNLOCKED; /* second */
> > > -__cacheline_aligned rwlock_t tasklist_lock = RW_LOCK_UNLOCKED; /* third */
> > > +spinlock_t runqueue_lock __cacheline_aligned = SPIN_LOCK_UNLOCKED; /* second */
> > > +rwlock_t tasklist_lock __cacheline_aligned = RW_LOCK_UNLOCKED; /* third */
> > >
> >
> > And thats gcc 8)
>
> Yeah. Again, the officially sanctioned version. Should we all be using
> something else?
>
It doesn't mean you have to be using something else. Just apply the patch
that has probably been posted here many times.

####################
--- linux_old/kernel/sched.c Sat Jun 24 19:06:17 2000
+++ linux/kernel/sched.c Sat Jun 24 19:06:51 2000
@@ -60,8 +60,8 @@
  * The run-queue lock locks the parts that actually access
  * and change the run-queues, and have to be interrupt-safe.
  */
-__cacheline_aligned spinlock_t runqueue_lock = SPIN_LOCK_UNLOCKED; /* second */
-__cacheline_aligned rwlock_t tasklist_lock = RW_LOCK_UNLOCKED; /* third */
+spinlock_t runqueue_lock __cacheline_aligned = SPIN_LOCK_UNLOCKED; /* second */
+rwlock_t tasklist_lock __cacheline_aligned = RW_LOCK_UNLOCKED; /* third */
 
 static LIST_HEAD(runqueue_head);
####################

People aren't perfect, so why take the time to complain about stuff that
should be easy to fix in the first place?

Chris

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:06 EST