From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 10774 invoked from network); 31 May 1998 09:39:52 -0000 Received: from stefan.sime.com (193.228.80.247) by mail2.redhat.com with SMTP; 31 May 1998 09:39:52 -0000 Received: (from stefan@localhost) by stefan.sime.com (8.8.7/8.8.7) id LAA01705; Sun, 31 May 1998 11:38:15 +0200 Date: Sun, 31 May 1998 11:38:15 +0200 Message-Id: <199805310938.LAA01705@stefan.sime.com> From: Quant-X Alpha Linux Support To: axp-list@redhat.com In-reply-to: <3570BA01.6F262194@andrew.cmu.edu> (message from Don Crimbchin on Sun, 31 May 1998 02:04:52 +0000) Subject: Re: 2.1 kernels on SX164? MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: Quant-X Alpha Linux Support Reply-To: Quant-X Alpha Linux Support Organization: Quant-X Service & Consulting Ges.m.b.H. X-Mailer: GNU Emacs 20.2.1 C-x m (X11 ; I; Linux 2.0.32 i586) References: <356F0328.3B3A1EFB@andrew.cmu.edu> <199805292214.XAA03184@picu-sgh.demon.co.uk> <199805292258.AAA01919@stefan.sime.com> <199805292322.AAA04992@picu-sgh.demon.co.uk> <3570BA01.6F262194@andrew.cmu.edu> 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