xref: /DragonOS/kernel/src/arch/riscv64/include/asm/irqflags.h (revision c635d8a9cfe25bc11779f323ef0c7d7a0f597d4a)
1 #pragma once
2 
3 // 保存当前rflags的值到变量x内并关闭中断
4 #define local_irq_save(x) \
5     do                    \
6     {                     \
7     } while (1)
8 // 恢复先前保存的rflags的值x
9 #define local_irq_restore(x) \
10     do                       \
11     {                        \
12     } while (1)
13 #define local_irq_disable() cli();
14 #define local_irq_enable() sti();
15