irqflags.S 456 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #include <asm/asm.h>
  3. #include <asm-generic/export.h>
  4. #include <linux/linkage.h>
  5. /*
  6. * unsigned long native_save_fl(void)
  7. */
  8. ENTRY(native_save_fl)
  9. pushf
  10. pop %_ASM_AX
  11. ret
  12. ENDPROC(native_save_fl)
  13. EXPORT_SYMBOL(native_save_fl)
  14. /*
  15. * void native_restore_fl(unsigned long flags)
  16. * %eax/%rdi: flags
  17. */
  18. ENTRY(native_restore_fl)
  19. push %_ASM_ARG1
  20. popf
  21. ret
  22. ENDPROC(native_restore_fl)
  23. EXPORT_SYMBOL(native_restore_fl)