Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Kernel 2.1.32
@ 1997-04-09  6:28 Jeff Odom
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Odom @ 1997-04-09  6:28 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Kernel 2.1.32
@ 1997-04-06 11:58 Matthew Geier
  1997-04-06 14:38 ` Tim Waugh
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Geier @ 1997-04-06 11:58 UTC (permalink / raw)


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.

-- 
Matthew Geier,                 | Australian Public Access Network Association
matthew@sleeper.apana.org.au   | +61 2 9587 9773  
matthew@law.usyd.edu.au        |   018 977 356

--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-04-09  6:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-09  6:28 Kernel 2.1.32 Jeff Odom
  -- strict thread matches above, loose matches on Subject: below --
1997-04-06 11:58 Matthew Geier
1997-04-06 14:38 ` Tim Waugh

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