File tree Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -135,8 +135,6 @@ static inline notrace unsigned long arch_local_irq_save(void)
135
135
*/
136
136
#define SWAPGS_UNSAFE_STACK swapgs
137
137
138
- #define PARAVIRT_ADJUST_EXCEPTION_FRAME /* */
139
-
140
138
#define INTERRUPT_RETURN jmp native_iret
141
139
#define USERGS_SYSRET64 \
142
140
swapgs; \
@@ -150,8 +148,6 @@ static inline notrace unsigned long arch_local_irq_save(void)
150
148
#endif
151
149
#else
152
150
#define INTERRUPT_RETURN iret
153
- #define ENABLE_INTERRUPTS_SYSEXIT sti; sysexit
154
- #define GET_CR0_INTO_EAX movl %cr0, %eax
155
151
#endif
156
152
157
153
Original file line number Diff line number Diff line change @@ -887,14 +887,7 @@ extern void default_banner(void);
887
887
call PARA_INDIRECT(pv_ops+PV_IRQ_irq_enable); \
888
888
PV_RESTORE_REGS(clobbers | CLBR_CALLEE_SAVE);)
889
889
890
- #ifdef CONFIG_X86_32
891
- #define GET_CR0_INTO_EAX \
892
- push %ecx; push %edx; \
893
- ANNOTATE_RETPOLINE_SAFE; \
894
- call PARA_INDIRECT(pv_ops+PV_CPU_read_cr0); \
895
- pop %edx; pop %ecx
896
- #else /* !CONFIG_X86_32 */
897
-
890
+ #ifdef CONFIG_X86_64
898
891
/*
899
892
* If swapgs is used while the userspace stack is still current,
900
893
* there's no way to call a pvop. The PV replacement *must* be
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ void common(void) {
69
69
OFFSET (PV_IRQ_irq_disable , paravirt_patch_template , irq .irq_disable );
70
70
OFFSET (PV_IRQ_irq_enable , paravirt_patch_template , irq .irq_enable );
71
71
OFFSET (PV_CPU_iret , paravirt_patch_template , cpu .iret );
72
- OFFSET (PV_CPU_read_cr0 , paravirt_patch_template , cpu .read_cr0 );
73
72
OFFSET (PV_MMU_read_cr2 , paravirt_patch_template , mmu .read_cr2 );
74
73
#endif
75
74
You can’t perform that action at this time.
0 commit comments