Skip to content
Commit 1c8f1cd5 authored by Kumar Gala's avatar Kumar Gala Committed by Anas Nashif
Browse files

tests: kernel: interrupt: workaround qemu_x86 interrupt issue



qemu_x86 seems to take an extra instruction after the sti instruction
(irq_unlock) happens before it posts the interrupts.  This can issues
if the instruction after the sti ends up reading the state that is
suppose to be updated by the ISR handler.

We see this behavior when building with LLVM.  To workaround this issue
we add an arch_nop() to provide an extra instruction to allow the
interrupts to post.

Opened zephyrproject-rtos/sdk-ng#629 to track qemu issue.

Signed-off-by: default avatarKumar Gala <kumar.gala@intel.com>
parent 4e13e6ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment