From: Jeff Odom <zeus@jhu.edu>
Subject: Re: Kernel 2.1.32
Date: Wed, 9 Apr 1997 02:28:56 -0400 (EDT) [thread overview]
Message-ID: <8f62a38da4f9d49fe4078a0f13bc9fcc.axp-list@archive.invalid> (raw)
On Sun, 6 Apr 1997, Tim Waugh wrote:
On Sun, 6 Apr 1997, Matthew Geier wrote:
>
> Ok, what did I do...
> sleeper:/usr/src/linux> make
> gcc -D__KERNEL__ -I/u1/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit
-frame-pointer -pipe -mno-fp-regs -ffixed-8 -c -o init/main.o init/main.c
> In file included from init/main.c:40:
> /u1/src/linux/include/asm/io.h:41: macro `swpipl' used with just one arg
> /u1/src/linux/include/asm/io.h: In function `set_hae':
> In file included from init/main.c:40:
> /u1/src/linux/include/asm/io.h:41: parse error before `__asm__'
> make: *** [init/main.o] Error 1
> sleeper:/usr/src/linux>
>
> Kernel 2.1.31 failed at the same point, and it was a clean unpack
> of the 2.1.31 tree. Patching to .32 didnt seem to help.
The fix for this is something like:
--- include/asm-alpha/io.h~ Sun Apr 6 15:37:16 1997
+++ include/asm-alpha/io.h Sun Apr 6 15:37:18 1997
@@ -38,7 +38,8 @@
*/
extern inline void set_hae(unsigned long new_hae)
{
- unsigned long ipl = swpipl(7);
+ unsigned long ipl;
+ swpipl(ipl,7);
hae.cache = new_hae;
*hae.reg = new_hae;
mb();
This gets it over the compile problem, but the final link fails for me
(local_intr_count and synchronise_irq).
Tim.
*/
Looking at the asm-i386/hardirq.h file, I see synchronize_irq defined as:
#define synchronize_irq() do { } while (0)
Considering that the call to synchronize_irq() is the only new line
since 2.0.29 in the function de4x5_interrupt() in drivers/net/de4x5.c
(aside from removing another line later on in that function), and it
doesn't even do anything on the intel model, I think this is a pretty
resonable patch.
Doing something similar for local_irq_count, it seems to expect an integer
array. Looks like this this array comes out of the code shared by both
SMP and non-SMP systems. In arch/i386/kernel/irq.c, there is a line
unsigned int local_irq_count[NR_CPUS];
In the file include/linux/tasks.h, NR_CPUS is defined to be 1 for non-SMP
systems.
So it seems that while support was being added for i386 non-SMP stuff,
non-i386 archs weren't being taken care of. I just tacked that line onto
arch/alpha/kernel/irq.c, and now it compiles.
Unfortunately, now, I get stuck at the network initialization stage. :(
Jeff Odom
System Administrator
The Johns Hopkins Krieger Mind/Brain Institute
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-04-09 6:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-09 6:28 Jeff Odom [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-04-06 11:58 Kernel 2.1.32 Matthew Geier
1997-04-06 14:38 ` Tim Waugh
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