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