Revert "arch/riscv: Do not use irq_lock() on arch_irq_offload"

This reverts commit b0458201cc.

The purpose of this commit will be reintroduced later on top of
a cleaner codebase.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
Nicolas Pitre 2022-03-09 17:40:27 -05:00 committed by Anas Nashif
commit 13a7047ea9

View file

@ -33,8 +33,13 @@ void z_irq_do_offload(void)
void arch_irq_offload(irq_offload_routine_t routine, const void *parameter)
{
unsigned int key;
key = irq_lock();
_offload_routine = routine;
offload_param = parameter;
__asm__ volatile ("ecall");
irq_unlock(key);
}