Skip to content

Commit

Permalink
tests: kernel: interrupt: MicroBlaze trigger_irq implementation (emul…
Browse files Browse the repository at this point in the history
…ated)

Internal references: FWRIVERHD-4554

Signed-off-by: Alp Sayin <alpsayin@gmail.com>
  • Loading branch information
alpsayin committed Jun 23, 2023
1 parent beb296a commit a13badd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions subsys/testsuite/include/zephyr/interrupt_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ static inline void trigger_irq(int irq)
z_mips_enter_irq(irq);
}

#elif defined(CONFIG_MICROBLAZE)
static inline void trigger_irq(int irq)
{
EMULATE_IRQ(irq);
}
#else
/* So far, Nios II does not support this */
#define NO_TRIGGER_FROM_SW
Expand Down
2 changes: 2 additions & 0 deletions subsys/testsuite/include/zephyr/test_asm_inline_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ static inline void timestamp_serialize(void)
#define timestamp_serialize()
#elif defined(CONFIG_MIPS)
#define timestamp_serialize()
#elif defined(CONFIG_MICROBLAZE)
#define timestamp_serialize()
#else
#error implementation of timestamp_serialize() not provided for your CPU target
#endif
Expand Down

0 comments on commit a13badd

Please sign in to comment.