[tulip] Building on RH7.3 from netdrivers-3.3

Robert W March RWMarch@sympatico.ca
Thu Jan 2 15:18:00 2003


On January 2, 2003 10:22, you wrote:
> You should not need to change this with a 2.4 kernel that is using the
> in-kernel support.  This is needed if you are using David Hinds original
> PCMCIA package (a few 2.4 configuration, and all 2.2 and earlier systems).

OK.  Understood.

> > /lib/modules/2.4.18-19.7.x/build/include/asm/spinlock.h:9: nondigits in
> > number and not hexadecimal
>
> Red Hat modifies the kernel source, and the modifications are different
> for the different releases.  What does your copy of spinlock.h have on
> this line?

I have the current stock RH7.3 version of spinlock.h .  The block in the 
neighbourhood of line 56 says:
#ifdef CONFIG_SMP
#include <asm/spinlock.h>

#elif !defined(spin_lock_init) /* !SMP and spin_lock_init not previously
                                  defined (e.g. by including asm/spinlock.h */

And my .config happens to have:
CONFIG_SMP=y

and the code surrounding line 56 in asm/spinlock.h says:
#define spin_lock_string \
        "\n1:\t" \
        "lock ; decb %0\n\t" \
        "js 2f\n" \
        LOCK_SECTION_START("") \
        "2:\t" \
        "cmpb $0,%0\n\t" \
        "rep;nop\n\t" \
        "jle 2b\n\t" \
        "jmp 1b\n" \
        LOCK_SECTION_END

Thanking you for your help,
Robert

-- 
                                  Robert March
                              St Andrew's House
                          L'Orignal  ON  K0B 1K0