cbaechle
Posts: 1
Joined: Tue Aug 05, 2014 4:21 am

Distinguishing source of interrupt

Tue Aug 05, 2014 5:12 am

How can I distinguish the source of an interrupt?

Following dwelch67's tutorials, suppose I have both the system timer and uart enabled as interrupt sources and an interrupt is generated. Is there a register or memory location that contains further information as to the source of the interrupt?

I searched the bare metal forums and found some discussion, but am still confused as to whether there's a generic way of determining the source of an interrupt.

colinh
Posts: 95
Joined: Tue Dec 03, 2013 11:59 pm
Location: Munich

Re: Distinguishing source of interrupt

Wed Aug 27, 2014 9:53 pm

Yes, there are registers like that :-)

Have a look at http://www.raspberrypi.org/wp-content/u ... herals.pdf

See the sections on Interrupts and on the peripherals you're interested in.

Return to “Bare metal, Assembly language”