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