WIP FPC-III support
[linux/fpc-iii.git] / arch / x86 / kernel / irqflags.S
blob0db0375235b48382d258406336b07d69d1e8ff9a
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #include <asm/asm.h>
4 #include <asm/export.h>
5 #include <linux/linkage.h>
7 /*
8  * unsigned long native_save_fl(void)
9  */
10 SYM_FUNC_START(native_save_fl)
11         pushf
12         pop %_ASM_AX
13         ret
14 SYM_FUNC_END(native_save_fl)
15 EXPORT_SYMBOL(native_save_fl)
18  * void native_restore_fl(unsigned long flags)
19  * %eax/%rdi: flags
20  */
21 SYM_FUNC_START(native_restore_fl)
22         push %_ASM_ARG1
23         popf
24         ret
25 SYM_FUNC_END(native_restore_fl)
26 EXPORT_SYMBOL(native_restore_fl)