]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: implement local_irq_{save,restore} macros
authorBen Dooks <ben.dooks@sifive.com>
Fri, 5 May 2023 08:02:06 +0000 (09:02 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 6 Jul 2023 09:28:08 +0000 (17:28 +0800)
commit266dc8c90442a2991aba6ebc357ae99940976afb
tree84cee76aef0b9e0a773c42c438063c6b7bd155f3
parent60a1885d35d8f42eaf00ce80d35f044fac5d5d5d
riscv: implement local_irq_{save,restore} macros

Add implementations of the local_irq_{save,restore} macros so that
<asm/atomic.h> can be used with riscv.

Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/include/asm/system.h