All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] ADEOS for ARM: irq vectors ?
@ 2004-05-13 15:52 Steven Scholz
  0 siblings, 0 replies; only message in thread
From: Steven Scholz @ 2004-05-13 15:52 UTC (permalink / raw)
  To: adeos-main

Hi there,

I am looking at the file

http://download.gna.org/adeos/patches/v2.4/arm/adeos-linux-2.4.19-arm-rmk7-pxa2-r12.patch

and find the code:

#elif defined(CONFIG_ARCH_SA1100)

                 .macro  disable_fiq
                 .endm

                 .macro  get_irqnr_and_base, irqnr, irqstat, base, tmp
                 mov     r4, #0xfa000000                 @ ICIP = 0xfa050000
                 add     r4, r4, #0x00050000
                 ldr     \irqstat, [r4]                  @ get irqs
                 ldr     \irqnr, [r4, #4]                @ ICMR = 0xfa050004
                 ands    \irqstat, \irqstat, \irqnr
                 mov     \irqnr, #0
                 beq     1001f
#ifdef CONFIG_ADEOS_CORE
                 tst     \irqstat, #0x04000000   @ check OSMR0 first
                 movne   \irqnr, #26
                 bne     1001f
#endif /* CONFIG_ADEOS_CORE */
                 tst     \irqstat, #0xff
                 moveq   \irqstat, \irqstat, lsr #8
                 addeq   \irqnr, \irqnr, #8
...

What's the point here?

Does it mean that if an interrupt occured and it was a timer interrupt

     tst     \irqstat, #0x04000000   @ check OSMR0 first

then irqnr (=R0) is loaded with the value "26" ...

So ADEOS replace the interrupt "vector 26" with its own code that gets 
called instead of the normal timer interrupt? Is that correct? Where is it done?

Thanks!

Steven



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-13 15:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-13 15:52 [Adeos-main] ADEOS for ARM: irq vectors ? Steven Scholz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.