File tree Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 13
13
* Interrupt control:
14
14
*/
15
15
16
- static inline unsigned long native_save_fl (void )
16
+ extern inline unsigned long native_save_fl (void )
17
17
{
18
18
unsigned long flags ;
19
19
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ obj-y += alternative.o i8253.o hw_breakpoint.o
61
61
obj-y += tsc.o tsc_msr.o io_delay.o rtc.o
62
62
obj-y += pci-iommu_table.o
63
63
obj-y += resource.o
64
+ obj-y += irqflags.o
64
65
65
66
obj-y += process.o
66
67
obj-y += fpu/
Original file line number Diff line number Diff line change
1
+ /* 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
+ */
10
+ ENTRY(native_save_fl)
11
+ pushf
12
+ pop %_ASM_AX
13
+ ret
14
+ ENDPROC(native_save_fl)
15
+ EXPORT_SYMBOL(native_save_fl)
16
+
17
+ /*
18
+ * void native_restore_fl(unsigned long flags)
19
+ * %eax/%rdi: flags
20
+ */
21
+ ENTRY(native_restore_fl)
22
+ push %_ASM_ARG1
23
+ popf
24
+ ret
25
+ ENDPROC(native_restore_fl)
26
+ EXPORT_SYMBOL(native_restore_fl)
You can’t perform that action at this time.
0 commit comments