Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Quant-X Alpha Linux Support <stefan@sime.com>
To: axp-list@redhat.com
Subject: Re: 2.1 kernels on SX164?
Date: Sun, 31 May 1998 11:38:15 +0200	[thread overview]
Message-ID: <199805310938.LAA01705@stefan.sime.com> (raw)
In-Reply-To: <3570BA01.6F262194@andrew.cmu.edu> (message from Don Crimbchin on Sun, 31 May 1998 02:04:52 +0000)

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


  parent reply	other threads:[~1998-05-31  9:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-29 18:49 2.1 kernels on SX164? Don Crimbchin
1998-05-29 22:14 ` Peter Rye
1998-05-29 22:58   ` Quant-X Alpha Linux Support
1998-05-29 23:22     ` Peter Rye
1998-05-31  2:04       ` Don Crimbchin
1998-05-31  1:32         ` Dave Gilbert
1998-05-31  8:26         ` Peter Rye
1998-05-31 12:59           ` Don Crimbchin
1998-05-31  9:38         ` Quant-X Alpha Linux Support [this message]
1998-05-31 16:05           ` Stephen Williams
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox