blob: 760e1f293093f9b3573e74b84ead5f822990cbc7 [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 */
Peter Zijlstra20125c82021-06-24 11:41:17 +020010.pushsection .noinstr.text, "ax"
Jiri Slaby6dcc5622019-10-11 13:51:04 +020011SYM_FUNC_START(native_save_fl)
Nick Desaulniersd0a8d932018-06-21 09:23:24 -070012 pushf
13 pop %_ASM_AX
14 ret
Jiri Slaby6dcc5622019-10-11 13:51:04 +020015SYM_FUNC_END(native_save_fl)
Peter Zijlstra20125c82021-06-24 11:41:17 +020016.popsection
Nick Desaulniersd0a8d932018-06-21 09:23:24 -070017EXPORT_SYMBOL(native_save_fl)