This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM Interrupt Register

Note: This was originally posted on 9th May 2013 at http://forums.arm.com

I am working on Non-Secure Side and i want to find if a Interrupt is pending. What value should i look for to find out if an interrupt is pending in the register:
Highest Pending Interrupt Register (ICCHPIR)





The following URL is confusing:

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ihi0048a/CHDIFEDJ.html

Thanks
  • Note: This was originally posted on 10th May 2013 at http://forums.arm.com

    I work on both secure and non-secure sides and


    I am checking from the Non-Secure Side:
    ---------------------------------------------------------

    My Condition is "NO Non-Secure Interrupt Pending"? - I check for the value 1023. That is If the register read returns 1023 - I assume that there are no non secure interrupts pending. Is this correct?


    I am checking from the Secure Side
    -------------------------------------------------

    My Condition is "NO Non-Secure Interrupt Pending"? - I check for the value 1023. That is If the register read returns 1023 - I assume that there are no non-secure interrupts are pending. Is this correct?

    Is my understanding correct?
  • Note: This was originally posted on 9th May 2013 at http://forums.arm.com

    Are you interested in whether any interrupt is pending, or a specific interrupt is pending?

    If  "any" then you're looking for the register read not returning one of the reserved IDs (1020-1023).  Basically the register returns the IDs of the pending interrupt with the hightest priority.  If there are no pending interrupts it will return one of the those four reserved IDs.