All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Scholz <steven.scholz@domain.hid>
To: adeos-main@gna.org
Subject: [Adeos-main] ADEOS for ARM: irq vectors ?
Date: Thu, 13 May 2004 17:52:28 +0200	[thread overview]
Message-ID: <40A399BC.9080001@domain.hid> (raw)

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



                 reply	other threads:[~2004-05-13 15:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40A399BC.9080001@domain.hid \
    --to=steven.scholz@domain.hid \
    --cc=adeos-main@gna.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.