[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: 2.1 kernels on SX164?



Hi !

> Althought the kernel loads now, it gives me lots (LOTS!) of 
> errors to the console like this:
> 
>   CPU[0]: where [fffffc000031735c] glocked[1] gicnt[1] licnt[1]

Try to uncomment SMP = 1 in /usr/src/linux/Makefile.
 
> One rather important thing i forgot to mention--(because I 
> thought the problem was with MILO, rather than the kernel) 
> when I was building the kernel, I got two parse errors in 
> ide-probe.c.  (I have IDE, not SCSI).  
> 
> The parse errors were at lines 531 and 696

> 531: #if (DEBUG_SPINLOCK > 0)

> 696: #if (DEBUG_SPINLOCK > 0)

The code is correct if DEBUG_SPINLOCK is defined to a nummeric
value. You get a parse error if DEBUG_SPINLOCK is defined to nothing.
(#define SPINLOCK)

> I also tried chaning 
> 
>   #if (DEBUG_SPINLOCK > 0)
> 
> to 
> 
>   #ifdef DEBUG_SPINLOCK

This is identical to "#if 1" and should work, but it's not correct
because it's also true for "#define DEBUG_SPINLOCK 0".

The error seems to be in include/asm-alpha/spinlock.h

#if 1
#define DEBUG_SPINLOCK
#else
#undef DEBUG_SPINLOCK
#endif

If not really checked all out, but please try to replace 
"#define DEBUG_SPINLOCK" with "#define DEBUG_SPINLOCK 1"
and "#undef DEBUG_SPINLOCK" with "#DEFINE DEBUG_SPINLOCK 0"
(the last is never used because of "#if 1") so your "random" fix is ok.
two lines later "#ifdef DEBUG_SPINLOCK" should be replaced
by "#if (DEBUG_SPINLOCK > 0)" but it's not really needed
because DEBUG_SPINLOCK is defined to 1 (#if 1).

The problem exists because spinlock.h wants "DEBUG_SPINLOCK"
defined or undefined, and ide_probe.c expects "DEBUG_SPINLOCK"
set to 0, 1 or 2.

The bug is in asm-alpha, asm-i386 is correct.

Hope it helps a bit.

-- 

Quant-X Service &                         Ph:  (+43) 4212 6004-0
Consulting Ges.m.b.H.                     Fax: (+43) 4212 600420
http://www.quant-x.com                    Email: support@quant-x.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []