debug: interrupt event logger support for arc
Jira: ZEP-53 Change-Id: Id6ee505a7e89122a47fc22162b4c257ac2126d09 Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com>
This commit is contained in:
parent
267e6e639c
commit
b17258b536
3 changed files with 78 additions and 0 deletions
|
@ -278,6 +278,21 @@ static ALWAYS_INLINE int _IS_IN_ISR(void)
|
|||
return ((act & 0xffff) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @bried Indicates the interrupt number of the highest priority
|
||||
* active interrupt
|
||||
*
|
||||
* @return IRQ number
|
||||
*/
|
||||
static ALWAYS_INLINE int _INTERRUPT_CAUSE(void)
|
||||
{
|
||||
uint32_t irq_num = _arc_v2_aux_reg_read(_ARC_V2_ICAUSE);
|
||||
|
||||
return irq_num;
|
||||
}
|
||||
|
||||
|
||||
extern void nanoCpuAtomicIdle(unsigned int);
|
||||
extern void _thread_entry_wrapper(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue