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