Subject: Re: interrupt variables
To: None <chris@paradox.demon.co.uk>
From: Robert Swindells <rjs@genrad.co.uk>
List: port-arm32
Date: 07/24/2001 12:00:15
Chris Gilbert wrote:
>On Tuesday 24 July 2001 12:33 am, Robert Swindells wrote:
>> Does anyone know why the variables in arch/arm/footbridge/footbridge_irq.S
>> are declared as .text instead of .data or .bss ?

>Which variables, as far as I can see they're all local vars with the 
>addresses of the real variables.  A few are towards the end of the file for 
>IRQSTATS, but they are in the .bss.

You are right, footbridge_irq.S is fine. I shouldn't write emails late at
night.

I had been tracking down why I was getting faults in the files I
copied from hpcarm/sa11x0. It was being generated when a variable
called saipic_base was written with the virtual address of the
interrupt controller registers.

The hpcarm port gets away with this as the kernel text is mapped RW,
but I also wondered if I was missing something in my reading of the
arm32 version. I didn't spot that they were all pointers to the real
variables.

I'll do something similar in sa11x0_irq.S.

Robert Swindells