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:
parent
1165bd667f
commit
13a7047ea9
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue