blob: ddeeaac8addadcb0556975d31a3262e5473a0141 [file] [log] [blame]
Nick Desaulniersd0a8d932018-06-21 09:23:24 -07001/* SPDX-License-Identifier: GPL-2.0 */
2
3#include <asm/asm.h>
4#include <asm/export.h>
5#include <linux/linkage.h>
6
7/*
8 * unsigned long native_save_fl(void)
9 */
10ENTRY(native_save_fl)
11 pushf
12 pop %_ASM_AX
13 ret
14ENDPROC(native_save_fl)
15EXPORT_SYMBOL(native_save_fl)
16
17/*
18 * void native_restore_fl(unsigned long flags)
19 * %eax/%rdi: flags
20 */
21ENTRY(native_restore_fl)
22 push %_ASM_ARG1
23 popf
24 ret
25ENDPROC(native_restore_fl)
26EXPORT_SYMBOL(native_restore_fl)