xref: /DragonOS/kernel/src/arch/riscv64/include/asm/irqflags.h (revision 86ee1395de7c614865236ee15071c3603b794e44)
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