1 #pragma once 2 #include <asm/asm.h> 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() \ 14 do \ 15 { \ 16 } while (1) 17 #define local_irq_enable() \ 18 do \ 19 { \ 20 } while (1) 21