Subject: Re: interrupt variables
To: Robert Swindells <rjs@fdy2.demon.co.uk>
From: Chris Gilbert <chris@paradox.demon.co.uk>
List: port-arm32
Date: 07/24/2001 09:56:12
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.

> It seems a rather bad practice to me to be modifying the text segment.
>
> The kernel text segment is declared as AP_KR in cats_machdep.c, so my
> guess is that it only works because the variables only get written to
> from irq32 mode.

Nope AP_KR really does mean read only on cats, I don't believe that being in 
irq32 would stop a fault happening.

Chris